log

Since Kuzzle v1.0.0

These methods can be used to send messages to Kuzzle's log system.
Different log level are provided, and lower priority levels may be ignored depending on how the Kuzzle server is configured.

The lower a log level is, 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');