logger
OCP App SDK / logger
logger
Const
ILogger
Logger instance to be used by OCP apps.
Minimum log level can be configured by using ocp app set-log-level
command, e.g.:
ocp app set-log-level my_app@1.0.0 error
ocp app set-log-level my_app@1.0.0 info
To get the current log level of an app, use the command ocp app get-log-level
command, e.g.:
ocp app get-log-level my_app@1.0.0 --trackerId=1234
Accepted levels include debug, info, warn, error
Defined in: src/logging/Logger.ts:301
Updated 5 months ago