Library repository.
Provides logging functions suitable for pipelining:
Add log_tee to your list of dependencies in mix.exs:
def deps do
[
{:log_tee, github: "renderedtext/log-tee"}
]
endYou can use the LogTee module to log messages at different severity levels while processing data in a pipeline.
[1, 2, 3]
|> LogTee.debug("list content")
|> Enum.sum
|> LogTee.debug("sum")
This will log the content of the list and the sum of the list elements.
LogTee.debug(item, tag)LogTee.info(item, tag)LogTee.warn(item, tag)LogTee.error(item, tag)
Each function logs the item with the specified tag at the corresponding severity level and returns the item.
This software is licensed under the Apache 2.0 license.