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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -