Application log and system log

i sent message to application log from function , just using ," log(“hello world”); "
it displayed in that @eventing.

how can i send message to system log from function ? (location in lo)

anything like this " log(“hello world”); " ??


The log(…) statments go to handler specific logs live in a different set of rolling log files /opt/couchbase/var/lib/couchbase/data/@eventing/<<function_name>>.log it is not possible for you to write to the /opt/couchbase/var/lib/couchbase/logs/eventing.log from your JavaScript code in an Eventing handler.

can u please say that

  1. way to send message to application log using function?
  2. way to send message to system log using function?

i didn’t find any hint /clue in any of documentation…

please help me out


Please refer to Collect Logs & Diagnostic Information(UI) for a futher explanation.

In addition I do agree that the is a bit lacking on the subject of log files. This deficiency has been rectified and is pending final review for an update in the next week or two.



1 Like


tq … i got some idea from ur explanations