Log v0.5.1 API Reference
Modules
Provides macros to define log-macros named after levels
Provides logging for simple data structures in a human-readable fashion. It's meant to be used for manually-provided data structures with 1-4 fields
Provides Logger
backend for console logging functionality with output
filtering through environment variables
Provides function to change casing of strings, used in Log.Args
Defines Color type
Provides a datastructure to configure Log
Provides functions to get default runtime configuration
Parser for CONSOLE_DEVICE
environment variable
Provides functions to mark the message as skippable from the log writer
Provides functions to convert a Log.Message.t()
in text form
Behaviour for writing a Log.Message.t()
to IO
Provides Log.IO
implementation to write to STDIO or STDERR
Log frontend for Logger
focused on performing inspect
of input data
Provides functions to configure and order different levels
Provides functions to parse LOG_LEVEL
into filtering
Identifier for None level filter
Provides a datastructure that holds all the information related to an incoming log message that needs to output
Provide functions to replace namespaces from module names
Provides functions to determine module name prefix
Provides function to parse an atom into a Log.Tag.t()
Identifier for special tag :*
which makes the message always included in
the output
Provides functions to parse a list of atoms into a list of tags
Provides functions to parse a tag filter from a string
Provides functions to match a list of filters using a matcher function.
Each filter is executed using an and
or or
condition based on
Log.TagFilter.ConditionType
protocol
Provides functions to parse LOG_TAGS
into a list of Log.TagFilter.t()
Datastructure representing a tag prefixed with dash: -tag1
.
A tag prefixed with dash must be absent from the list of tags of the
message
Datastructure representing a tag prefixed with plus: +tag1
.
A tag prefixed with plus must always be present from the list of
tags of the message
Datastructure representing a tag with no prefix: tag1
.
A tag with no prefix will be matched with an or
condition (inclusive)
Datastructure representing the _all
tag filter
Datastructure representing the _untagged
tag filter
Provides functions to convert from a Logger timestamp to a
NaiveDateTime.t()