FaasBase.Common.Logger (FaasBase v1.2.0) View Source
A logger for Common.
Levels
The supported levels, ordered by precedence, are:
:debug
- for debug-related messages:info
- for information of any kind:warn
- for warnings:error
- for errors For example,:info
takes precedence over:debug
. If your log level is set to:info
,:info
,:warn
, and:error
will be printed to the console. If your log level is set to:warn
, only:warn
and:error
will be printed.
Setting
Set Log level to environment
-> LOG_LEVEL
Link to this section Summary
Link to this section Types
Specs
level() :: :error | :info | :warn | :debug
Link to this section Functions
Log Debug.
Log Error.
Log Information.
Specs
set_log_level(level()) :: :ok
Set log level.
Log Warning.