Logging

Noonian integrates the winston package for javascript logging, and provides functionality for creating and configuring a hierarchy of named loggers.

Configuration

Basic Configuration

Basic logging configuration can be set in instance-config.js using either the key logLevel or loggers.

logLevel

Simplest configuration, specifying only the log level. Possible values are:

  • error

  • warn

  • info

  • verbose

  • debug

  • silly

All log messages are written to the file instance.log, and error messages are written to the file error.log.

loggers

Todo

Allows for more control over which levels go to which targes, and some customization of log message formatting.

Advanced Configuration

Todo

For more control over logging transports and formatting, the file logging-config.js in the instance directory may be used to incorporate arbitrary winston loggers into Noonian.

Logger Naming

Loggers can be named in a similar hierarchical fashion as is done with apache log4j.

The name of the logger is included in messages written by that logger.

Todo

Loggers can be enabled, disabled, and configured by name.