loggex v0.1.1 Loggex View Source

Documentation for Loggex.

Link to this section Summary

Types

Adapter yto user for logging.

The event to log.

A log tag.

Link to this section Types

Specs

adapter() :: atom() | {atom(), Keyword.t()}

Adapter yto user for logging.

Specs

event() :: map() | (() -> map())

The event to log.

The event can be a function to be lazily resolved.

Specs

tag() :: String.t() | atom()

A log tag.

Link to this section Functions

Link to this function

log!(tag, event, opts \\ [])

View Source

Specs

log!(tag(), event(), Keyword.t()) :: :ok

Log event under tag.

Example

iex> log!(:logins, %{ip: "83.12.209.46"}