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).
浙ICP备2023005800号-2 浙公网安备33010902005384号