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”); " ??

Boby,

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.

@jon.strabala
tqtq
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

Boby,

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

In addition I do agree that the https://docs.couchbase.com/server/6.5/eventing/eventing-debugging-and-diagnosability.html#logging-functions 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.

Thanks

Jon

1 Like

@jon.strabala

tq … i got some idea from ur explanations