Plug.AccessLog.Logfiles

Logfile agent.

Source

Summary

get(logfile)

Returns the logfile device for writing

open(logfile)

Opens a logfile for future writing

replace(logfile, new_device)

Replaces the io_device associated with a logfile

set(logfile, new_device)

Sets the io_device associated with a logfile

start_link()

Starts the logfile agent

Functions

get(logfile)

Specs:

Returns the logfile device for writing.

Source
open(logfile)

Specs:

Opens a logfile for future writing.

Source
replace(logfile, new_device)

Specs:

Replaces the io_device associated with a logfile.

The already registered (if any) io_device will be closed using File.close/1.

The new io_device associated with the logfile will be returned.

Source
set(logfile, new_device)

Specs:

Sets the io_device associated with a logfile.

If a logfile is already associated with an io_device the passed one will be closed using File.close/1.

The new io_device associated with the logfile will be returned.

Source
start_link()

Specs:

Starts the logfile agent.

Source