troglobit / sysklogd

BSD syslog daemon with syslog()/syslogp() API replacement for Linux, RFC3164 + RFC5424
https://troglobit.com/sysklogd.html
Other
93 stars 20 forks source link

RFE: `strftime(3)`-like format specifiers in log file name #66

Open opty77 opened 1 year ago

opty77 commented 1 year ago

Please add support for strftime(3)-like format specifiers in log file name so one can use templates like /var/log/messages-%F in /etc/syslog.conf and doesn't have to use logrotate(3) (except corner cases, e.g. /var/log/wtmp at least).

Beyond the scope of this issue and for discussion, syslogd might eventually support non-date/time related specifiers like host name.

(Based on cronolog recommendation by user "colo" on channel #openwrt at OFTC IRC network.)

opty77 commented 11 months ago

I changed my mind and now consider this useless. If you think otherwise then please open your own issue.