daemontools
is a collection of tools by D.J. Bernstein for managing UNIX services. It monitors qmail
services and saves error messages to one or more logs.
The multilog
program has been modified to work both with timestamps and human readable datetimes (commit)
- the action
t
inserts an @, a precise timestamp, and a space in front of each line, using the same format astai64n
.
Example:
multilog t '-*' '+* fatal: *' ./main
prints the line
@400000003b4a39c23294b13c fatal: out of memory
- the action
d
inserts a human readable datetime in front of each line.
Example:
multilog d '-*' '+* fatal: *' ./main
prints the line
2024-07-29 10:36:08.811661123 fatal: out of memory
Both flags are required to be the first action.
Patches applied to the original djb daemontools-0.76:
- errno patch
- multilog_filesize_limit patch by Sam Tang, which extends the file log size limit to 100MB (default is 16MB).
You can find the patches applied in the src/patches directory.
You can find more info and ask for support at https://notes.sagredo.eu/en/qmail-notes-185/daemontools-14.html
Post any comment there.