ThousandIsland.Logger (Thousand Island v0.4.6) View Source

Allows dynamically adding and altering the log level used to trace connections within a Thousand Island server via the use of telemetry hooks. Should you wish to do your own logging or tracking of these events, a complete list of the telemetry events emitted by Thousand Island is described in the module documentation for ThousandIsland.

Link to this section Summary

Functions

Start logging Thousand Island at the specified log level. Valid values for log level are :error, :info, :debug, and :trace. Enabling a given log level implicitly enables all higher log levels as well.

Stop logging Thousand Island at the specified log level. Disabling a given log level implicitly disables all lower log levels as well.

Link to this section Functions

Specs

attach_logger(atom()) :: :ok | {:error, :already_exists}

Start logging Thousand Island at the specified log level. Valid values for log level are :error, :info, :debug, and :trace. Enabling a given log level implicitly enables all higher log levels as well.

Specs

detach_logger(atom()) :: :ok | {:error, :not_found}

Stop logging Thousand Island at the specified log level. Disabling a given log level implicitly disables all lower log levels as well.

Link to this function

log_debug(event, measurements, metadata, config)

View Source
Link to this function

log_info(list, measurements, metadata, config)

View Source
Link to this function

log_trace(event, measurements, metadata, config)

View Source