Plug.AccessLog v0.11.0 Plug.AccessLog.WAL

Write-Ahead-Log agent.

Summary

Functions

Flushes (returns and clears) all log messages

Tracks a new log message for delayed writing

Returns the list of logfiles with entries

Starts the agent

Functions

flush(logfile)

Specs

flush(String.t) :: list

Flushes (returns and clears) all log messages.

log(message, logfile)

Specs

log(String.t, String.t) :: :ok

Tracks a new log message for delayed writing.

logfiles()

Specs

logfiles :: list

Returns the list of logfiles with entries.

start_link()

Specs

start_link :: Agent.on_start

Starts the agent.