| Age | Commit message (Collapse) | Author |
|
Valve games (TF2, GMod) rotate into a new timestamped log file on every
map change. The existing fixed-path inotify watch goes stale after the
first rotation. This adds a directory-watch mode that auto-switches to
the newest matching file whenever one appears.
New YAML fields (mutually exclusive with logs:):
log_dir: directory to watch for new log files
log_pattern: fnmatch(3) glob for filenames; default "*"
Changes:
- umbrella.h: add log_dir[MAX_PATH] and log_dir_pattern[MAX_PATH] to Unit
- log_tail.c: extend LogWatch with dir_wd/dir_path/pattern fields;
add log_tail_drain, log_tail_scan_dir, log_tail_switch_file,
log_tail_open_fixed_watch, log_tail_open_dir_watch,
log_tail_reopen_fixed, log_tail_handle_rotation_dir;
refactor log_tail_init, log_tail_handle, log_tail_cleanup
- unit.c: parse log_dir and log_pattern YAML keys; warn and drop logs:
if both are set on the same unit
- AGENTS.md, README.md: document both log-tail modes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
README gets a Matrix bot section covering setup, commands, config paths,
and dependencies. AGENTS gets the bot added to the file map and a full
Matrix bot section covering the formatting rules (markdown->HTML via the
markdown library, no emojis, no em dashes), power level requirements,
command/socket message mapping, tail data flow, and config layout.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
README covers build, install layout, unit YAML format, bundled filters,
log setup, and CLI usage.
AGENTS.md is a compact reference for AI coding assistants: hard design
rules, full file map, key data flows, wire protocol, YAML parser gotcha,
log tail setup pattern, filter contract, and all limits.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|