Core
Write Plugins v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

Introduction #

The plugin context is an object containing a set of constructors, accessors and various other helpers, allowing plugins to interact with Kuzzle.

Each plugin receives its own context instance, provided to the plugin's init function.

This section documents the context.log object, exposing 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.

Levels above the threshold configued in the logs section of Kuzzle's configuration file are ignored.