Skip to content

g-andrade/fake_lager

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