Writes configurable plain-text log records.
This handler is suitable for non-interactive output. It supports a custom
formatter or a template with name, level, time, message, args, and
trace placeholders.
Returns a concise representation for text inspection.
Returns a JSON-safe value for logs.
Creates a plain-text handler.
The default level is Level.INFO, the default filter matches every name, and the default output is the process console.
Optionalopts: {OptionalalwaysAddTrace?: booleanContains the always add trace.
OptionalargDelimiter?: stringContains the arg delimiter.
OptionalargFormat?: ArgFormatFunctionContains the arg format.
Optionalfilters?: FiltersContains the filters.
Optionalformat?: string | FormatFunctionContains the format.
Optionallevel?: LevelContains the level.
Optionaloutput?: OutputContains the output.
Returns a JSON-safe value for logs.
Converts structured fields to one delimiter-separated text string.
Writes configurable plain-text log records.
This handler is suitable for non-interactive output. It supports a custom formatter or a template with
name,level,time,message,args, andtraceplaceholders.Example