# Functions
DiscardHandler returns a no-op handler.
FormatLogfmtUint64 formats n with thousand separators.
FormatSlogValue formats a slog.Value for serialization to terminal.
convert from old Geth verbosity level constants to levels defined by slog.
JSONHandler returns a handler which prints records in JSON format.
No description provided by the author
LevelAlignedString returns a 5-character string containing the name of a Lvl.
LevelString returns a string containing the name of a Lvl.
LogfmtHandler returns a handler which prints records in logfmt format, an easy machine-parseable but human-readable format for key/value pairs.
LogfmtHandlerWithLevel returns the same handler as LogfmtHandler but it only outputs records which are less than or equal to the specified verbosity level.
LvlFromString returns the appropriate Lvl from a string name.
NewLogger returns a logger with the specified handler set.
NewTerminalHandler returns a handler which formats log records at all levels optimized for human readability on a terminal with color-coded level output and terser human friendly timestamp.
NewTerminalHandlerWithLevel returns the same handler as NewTerminalHandler but only outputs records which are less than or equal to the specified verbosity level.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
for backward-compatibility.
# Structs
No description provided by the author
# Interfaces
A Logger writes key/value pairs to a Handler.
TerminalStringer is an analogous interface to the stdlib stringer, allowing own types to have custom shortened serialization formats when printed to the screen.