MetaLogger.log

You're seeing just the function log, go back to MetaLogger module for more information.
Link to this function

log(level, payload, metadata \\ [])

View Source

Specs

log(atom(), struct() | list() | chardata_or_fun(), metadata()) :: :ok

Logs a message with given level keeping logger metadata from caller processes.

Can accept a custom struct if it implements MetaLogger.Formatter protocol.

Returns :ok or an {:error, reason} tuple.

Examples

MetaLogger.log(:info, "mission accomplished")
MetaLogger.log(:error, fn -> "dynamically calculated info" end)
MetaLogger.log(:warn, fn -> {"dynamically calculated info", [additional: :metadata]} end)