LambdaBase v0.2.2 Util.LambdaLogger

A logger for AWS Lambda.

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.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Log Debug.

Log Error.

Log Information.

Log Warning.

Link to this section Types

Link to this type

level()

level() :: :error | :info | :warn | :debug
Link to this type

on_start()

on_start() :: {:ok, pid()} | {:error, {:already_started, pid()} | term()}

Link to this section Functions

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Log Debug.

Log Error.

Log Information.

Link to this function

start(log_level \\ :info)

start(level()) :: on_start()

Start Logger.

log_level must be in [:debug, :info, :warn, :error]

Log Warning.