slogger v0.2.0 Slogger

The unquoted expression in the using/1 macro unquote((["Slogger", "Loggers"] ++ Module.split(__CALLER__.module)) |> Module.concat) puts the generated logging module in question into a namespace under Slogger.Loggers. For example if MyModule has use Slogger then the module Slogger.Loggers.MyModule is generated and is the module that has the alias of Slogger in the MyModule namespace.

Link to this section Summary

Link to this section Types

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

Link to this section Functions

Link to this function default_level()
default_level() :: log_level()
Link to this function get_level(module)
Link to this macro is_level(item) (macro)
Link to this function set_level(module, level)
Link to this function should_log?(module, level)
should_log?(module(), log_level()) :: boolean()