Log
CONSOLE_DEVICE
=stdout | stderr
LOG_TAGS
=_all | _untagged | tag_name | -tag_name | +tag_name
-
requires the tag to be missing+
requires the tag to be present- No sign means "One or more of no sign tags must be present"
LOG_LEVEL
=_none | debug | info | warn | error | user_defined_level
LOG_DEBUG
=on | off
on prints debug messagesLOG_FORMATTERS
=on | off
on colorize outputLOG_MODULE
=on | off
on shows module where log line is being invoked
TODO
- Performance
- Guidelines for logging
- Testing
Installation
If available in Hex, the package can be installed
by adding log
to your list of dependencies in mix.exs
:
def deps do
[
{:log, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/log.