Writes human-readable log records with optional ANSI colors.
Error values include their message and stack. Use colors: false when the
output is a file or another destination that does not process ANSI codes.
Returns a concise representation for text inspection.
Returns a JSON-safe value for logs.
Creates a pretty handler.
The default level is Level.INFO, all logger names match, colors are enabled, and output goes to the process console.
Optionalopts: {OptionalalwaysAddTrace?: booleanContains the always add trace.
OptionalargDelimiter?: stringContains the arg delimiter.
OptionalargFormat?: ArgFormatFunctionContains the arg format.
Optionalcolors?: booleanContains the colors.
Optionalfilters?: FiltersContains the filters.
Optionallevel?: LevelContains the level.
Optionaloutput?: OutputContains the output.
Writes human-readable log records with optional ANSI colors.
Error values include their message and stack. Use
colors: falsewhen the output is a file or another destination that does not process ANSI codes.