Skip to main content

Module format

Module format 

Source
Expand description

Console formatter — logcat-style single-line human-readable output.

Format: MM-DD HH:MM:SS.sss L tag msg

Level is a single character (D/I/W/E). Tag is padded to 24 characters left-aligned. Timestamp is local time derived from the nanosecond UNIX-epoch ts field.

Functions§

format_console
Format a LogRecord as a logcat-style console line.
write_console
Write a LogRecord to stderr in console format.