ring_logger v0.3.0 RingLogger
Link to this section Summary
Functions
Attach the current IEx session to the logger. It will start printing log messages
Callback implementation for c::gen_event.code_change/3
Update the logger configuration
Detach the current IEx session from the logger
Helper method for formatting log messages per the current client’s configuration
Get all log messages at the specified index and later
Callback implementation for c::gen_event.handle_call/2
Callback implementation for c::gen_event.handle_event/2
Callback implementation for c::gen_event.handle_info/2
Callback implementation for c::gen_event.init/1
Reset the index into the log for tail/1
to the oldest entry
Tail the messages in the log
Callback implementation for c::gen_event.terminate/2
Link to this section Types
client_option() :: {:io, term()} | {:color, term()} | {:metadata, Logger.metadata()} | {:format, String.t()} | {:level, Logger.level()}
Option values used by attach
entry() :: {module(), Logger.level(), Logger.message(), Logger.Formatter.time(), keyword()}
Link to this section Functions
Attach the current IEx session to the logger. It will start printing log messages.
Options include:
:io
- Defaults to:stdio
:colors
-:metadata
- A KV list of additional metadata:format
- A custom format string:level
- The minimum log level to report.
Callback implementation for c::gen_event.code_change/3
.
Update the logger configuration.
Options include:
:max_size
- the max number of log messages to store at a time
Detach the current IEx session from the logger.
Helper method for formatting log messages per the current client’s configuration.
Get all log messages at the specified index and later.
Callback implementation for c::gen_event.handle_call/2
.
Callback implementation for c::gen_event.handle_event/2
.
Callback implementation for c::gen_event.handle_info/2
.
Callback implementation for c::gen_event.init/1
.
Reset the index into the log for tail/1
to the oldest entry.
Tail the messages in the log.
Callback implementation for c::gen_event.terminate/2
.