FaasBase.Common.Logger (FaasBase v1.1.1) 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

Functions

Log Debug.

Log Error.

Log Information.

Log Warning.

Link to this section Types

Specs

level() :: :error | :info | :warn | :debug

Link to this section Functions

Log Debug.

Log Error.

Log Information.

Link to this function

set_log_level(log_level \\ :info)

View Source

Specs

set_log_level(level()) :: :ok

Set log level.

Log Warning.