Module logs

Module logs 

Source
Expand description

Log Query and Management Module

Provides functionality to query, filter, and display application logs.

Structs§

LogEntry
Log entry structure
LogQuery
Log query parameters

Functions§

follow_logs
Follow logs in real-time (like tail -f)
format_entry_json
Format log entry as JSON
format_entry_text
Format log entry as text
list_log_files
List all available log files
log_dir
Get log directory path
log_file_for_mode
Get log file path for a specific mode
parse_duration
Parse duration string like “1h”, “24h”, “7d”
parse_log_line
Parse a log line into a LogEntry
query_logs
Query logs based on filter criteria