Timber v1.1.11 Timber.Utils.Logger

Summary

Functions

Convenience function for using the metadata logger key specified in the configuration. This is equivalent to

Functions

event_to_metadata(event)
event_to_metadata(Timber.Event.t) :: Keyword.t

Convenience function for using the metadata logger key specified in the configuration. This is equivalent to:

Examples

metadata = Timber.Utils.Logger.event_to_metadata(event)
Logger.info("my message", metadata)
get_event_from_metadata(metadata)
get_event_from_metadata(Keyword.t) :: nil | Timber.Event.t