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)
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)
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
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
tq … i got some idea from ur explanations