Skip to content

g-andrade/fake_lager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

71da8e6 · Dec 15, 2024

History

88 Commits
Oct 12, 2024
Jan 1, 2024
Jan 1, 2024
Jan 1, 2024
Nov 25, 2021
Sep 9, 2019
Oct 12, 2024
Jan 1, 2024
Feb 27, 2023
May 22, 2024
Feb 27, 2023
Feb 27, 2023
Dec 15, 2024
Sep 9, 2019

Repository files navigation

fake_lager

Erlang Versions

fake_lager is a drop-in replacement for lager that forwards logs to logger instead.

It intends on easing transitions to logger on codebases for which a straightforward move away from lager is impractical or unattainable in the near future.

The following lager functionality is covered:

  • distinct log levels
  • lazy evaluation of logging calls
  • process and message metadata
  • pretty printing of records (as tagged maps)

Extra sinks:

  • events sent to extra sinks will be sent to the default log; if you wish to send those events to a separate log, you can leverage extra logger handlers as well as filters - the events will include a lager_sink field in their metadata set to the name of the sink.

Yet to achieve:

  • support for pretty printing of stacktraces

Likely unattainable:

  • tracing