Marklogic Rest Api Logging -
i want log information error log. have come across xdmp:log()
xquery function , mydocumentmanager.startlogging(logger)
in java api. how perform same via rest api ??
i can write extension xdmp:log()
, perform same via rest api since java api built on rest-api think way out.
it sounds want use marklogic logging service. put-ing log entries log database (using /v1/documents on rest instance pointing such database), can make write errorlog.txt well.
marklogic rest-api doesn't provide functionality out of box, other built-in audit logging in marklogic. cannot influence, not looking for.
i think on right track rest extension. fits naturally rest-api, , allows use java library call it. separate rest call though, , have implement extension yourself.
you can use xdmp:log
, consider using fn:trace
, suggested in 1 of other questions: marklogic audit log
hth!
Comments
Post a Comment