log

Since Kuzzle v1.0.0

These methods can be used to send messages to Kuzzle's logging system.
Different log levels are supported, and lower priority levels can be ignored depending on how Kuzzle is configured.

The lower the log level, the higher its priority.

error

Since Kuzzle v1.0.0

Priority: 0 (highest priority)

context.log.error('error message');

warn

Since Kuzzle v1.0.0

Priority: 1

context.log.warn('warn message');

info

Since Kuzzle v1.0.0

Priority: 2

context.log.info('info message');

verbose

Since Kuzzle v1.0.0

Priority: 3

context.log.verbose('verbose message');

debug

Since Kuzzle v1.0.0

Priority: 4

context.log.debug('debug message');

silly

Since Kuzzle v1.0.0

Priority: 5 (lowest priority)

context.log.silly('silly message');