Guides v2.x

Internal Logger #

Kuzzle uses Winston to log messages.

The internal logger has 5 priority levels:

  • debug (not printed by default)
  • verbose (not printed by default)
  • info
  • warn
  • error

Winston is able to redirect the logs on differents "services" like stdout, syslog, Elasticsearch etc.
By default, the logs are printed to stdout.

Usage in an Application #

Available since 2.8.0
Experimental: non-backward compatible changes or removal may occur in any future release.

The Internal Logger is available only during the runtime phase, after the application has started.

Messages will be logged using the util.inspect method from Node.js.

By default the log level is set to info. You can change this configuration under the configuration key.

Example: Set the log level to verbose and log verbose messages

Copied to clipboard!
import { Backend } from 'kuzzle';

const app = new Backend('black-mesa');

// Set log level to verbose

  .then(() => {