Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1023 Bytes

toggling-log-levels.md

File metadata and controls

36 lines (28 loc) · 1023 Bytes

Ulrack Logging Extension - Toggling log levels

By default all log levels are enabled, however in some cases (e.g. on production environments) not all log levels are required. For this package a set of environment variables are added to the project which handle this. It is managed through the environment extension. The following variables are available:

logging.allowEmergency
logging.allowFatal
logging.allowError
logging.allowWarning
logging.allowNotice
logging.allowInfo
logging.allowDebug

When one of these values is set to false (with the bin/application environment set command), that log level will not be logged to a file. For example:

bin/application environment set -k logging.allowDebug -v false

Will disable any logging for the debug level in var/log/debug.log.

Further reading

Back to usage index

Installation

Add a logger

Add a logger plugin