Log v0.5.1 Log.API behaviour View Source

Provides macros to define log-macros named after levels:

  • trace
  • debug
  • info
  • warn
  • error
  • fatal

Link to this section Summary

Link to this section Functions

Link to this function

bare_log(chars_or_fun, meta)

View Source
bare_log(chars_or_fun :: String.t() | (() -> String.t()), meta :: keyword()) ::
  any()
Link to this function

get_base_meta(definer, caller_env)

View Source
Link to this function

get_default_meta(caller_env)

View Source
Link to this function

get_fixed_tags(definer, caller)

View Source
get_fixed_tags(definer :: module(), caller :: module()) :: [atom()]
Link to this function

log(module, level, chars_or_fun, meta)

View Source
Link to this function

put_base_meta(meta, base_meta)

View Source
Link to this function

put_fixed_tags(meta, fixed_tags)

View Source

Link to this section Callbacks

Link to this callback

bare_log(data, meta)

View Source
bare_log(data :: any() | (() -> any()), meta :: keyword()) :: any()
Link to this callback

default_tags()

View Source
default_tags() :: [atom()]