View Source RingLogger.Autoclient (ring_logger v0.8.5)
Helper module for RingLogger.Client
to simplify IEx use
If you're a human, call these functions via RingLogger.*
. If you're a
program, call RingLogger.Client.start_link/1
to start your own client and
call it directly.
Link to this section Summary
Functions
Attach to the logger and print messages as they come in.
Fetch the current configuration for the attached client.
Detach from the logger. Log messages will stop being printed to the console.
Completely stop the RingLogger.Client. You normally don't need to run this.
Format a log message. This is useful if you're calling RingLogger.get/1
directly.
Run a regular expression on each entry in the log and print out the matchers.
Print the log messages since the previous time this was called.
Reset the index used to keep track of the position in the log for tail/1
so
that the next call to tail/1
starts back at the oldest entry.
Save the log.
Print the most recent log messages.
Link to this section Functions
@spec attach([RingLogger.client_option()]) :: :ok | {:error, term()}
Attach to the logger and print messages as they come in.
@spec config() :: [RingLogger.client_option()] | {:error, term()}
Fetch the current configuration for the attached client.
@spec detach() :: :ok
Detach from the logger. Log messages will stop being printed to the console.
Completely stop the RingLogger.Client. You normally don't need to run this.
Format a log message. This is useful if you're calling RingLogger.get/1
directly.
@spec grep(String.t() | Regex.t(), [RingLogger.client_option()]) :: :ok | {:error, term()}
Run a regular expression on each entry in the log and print out the matchers.
Print the log messages since the previous time this was called.
@spec reset([RingLogger.client_option()]) :: :ok | {:error, term()}
Reset the index used to keep track of the position in the log for tail/1
so
that the next call to tail/1
starts back at the oldest entry.
Save the log.
Print the most recent log messages.