logger_backends_json v0.4.1 Logger.Backends.JSON.Event

Event is responsible for allowing and building given messages. It’s a separate module so it’s easy to switch it with your custom one.

Summary

Functions

Decides whenever we should proceed with evaluating the log entry. One more layer besides regular log level option

Builds map from the event message, it’s later on used as input for json

Functions

allow?(event)

Decides whenever we should proceed with evaluating the log entry. One more layer besides regular log level option.

_event is a struct of Logger.Backends.JSON.Event.

Returns true|false.

build(event)

Builds map from the event message, it’s later on used as input for json.

event is a struct of Logger.Backends.JSON.Event.

Returns a builded map.