log #
The context.log object exposes functions used to send messages to Kuzzle's logging system.
Log levels are assigned to each exposed log function, corresponding to the log priority. The lower the log level, the higher its priority.
Messages are sent to Kuzzle's internal logger: levels below the threshold set by the server.appLogs.level key of Kuzzle's configuration file (info by default) are ignored.
verbose and silly are deprecated: they log at the debug and trace levels of the internal logger. Use debug instead.
error #
Priority #
0 (highest priority)
Example #
context.log.error('error message');warn #
Priority #
1
Example #
context.log.warn('warning message');info #
Priority #
2
Example #
context.log.info('info message');verbose #
Priority #
3 (ignored by default)
Example #
context.log.verbose('verbose message');debug #
Priority #
4 (ignored by default)
Example #
context.log.debug('debug message');silly #
Priority #
5 (lowest priority, usually ignored)
Example #
context.log.silly('silly message');