QolUp.LoggerUtils (qol_up v1.0.3)

Macros supporting logging

Link to this section Summary

Functions

Using macro.

Log a string at specified logger level

Inspect then log an object at debug level

Print current stack trace and local variables at debug level, use as first statement in a function

Log a string at specified logger level

Log a string at specified logger level

Log the function result at debug level, pipe to this as last statement in a function

Print local bindings (all local variables)

Log a string at specified logger level

Print the current stack trace at debug level, use as fist statement in a function

Log the function result at debug level, pipe to this as last statement in a function

Log a string at specified logger level

Link to this section Functions

Link to this macro

__using__(opts \\ [])

(macro)

Using macro.

Parameters

  • opts KWL options, currently unused
Link to this macro

debug(string, metadata \\ [])

(macro)

Log a string at specified logger level

Link to this macro

di(o, metadata \\ [])

(macro)

Inspect then log an object at debug level

Link to this macro

enter(metadata \\ [])

(macro)

Print current stack trace and local variables at debug level, use as first statement in a function

Link to this macro

error(string, metadata \\ [])

(macro)

Log a string at specified logger level

Link to this macro

info(string, metadata \\ [])

(macro)

Log a string at specified logger level

Link to this macro

leave(result, metadata \\ [])

(macro)

Log the function result at debug level, pipe to this as last statement in a function

Link to this macro

locals(metadata \\ [])

(macro)

Print local bindings (all local variables)

Link to this macro

log(level, string)

(macro)

Log a string at specified logger level

Link to this macro

trace_enter(metadata \\ [])

(macro)

Print the current stack trace at debug level, use as fist statement in a function

Link to this macro

trace_leave(result, metadata \\ [])

(macro)

Log the function result at debug level, pipe to this as last statement in a function

Link to this macro

warn(string, metadata \\ [])

(macro)

Specs

warn(any(), any()) ::
  {:__block__, [], [{:= | {any(), any(), any()}, [], [...]}, ...]}

Log a string at specified logger level