Skip to main content

Module logs

Module logs 

Source

FunctionsΒ§

execute
follow πŸ”’
Follow mode: open all *.log files, seek to end, and tail new lines.
level_floor πŸ”’
Minimum level string β†’ numeric floor for filtering.
level_value πŸ”’
list_tags πŸ”’
Scan every *.log in dir and print the distinct tags found, each with a record count, sorted by tag. Helps discover which -t <tag> values exist. Ignores the tag / level filters. When no Scribe records parse, says so (the files may be empty or in a pre-Scribe text format) rather than printing nothing.
read_all πŸ”’
Read all *.log files in dir, parse every line as a LogRecord, apply tag / level filters, sort by timestamp, and print.
render_console πŸ”’
Render one record as a logcat-style line (reuse Scribe’s own formatter).