View Source Medea.Translator (Medea v0.1.1)

Translates structured log "reports" into encoded JSON iodata.

Link to this section Summary

Functions

Translate a report into encoded JSON iodata or fall through to the default translator.

Link to this section Types

@type kind() :: :format | :report
@type level() :: Logger.level()
@type report() :: :logger.report()
@type result() :: {:ok, iodata(), keyword()} | {:ok, iodata()} | :skip | :none

Link to this section Functions

Link to this function

translate(arg1, level, arg3, arg4)

View Source
@spec translate(level(), level(), kind(), report()) :: result()

Translate a report into encoded JSON iodata or fall through to the default translator.