3 ms·
My issue with host and version at the beginning of the log is that they'll roll away when your logs rotate. If you've got a service that's rarely taken down, an
by trotter_cashion 14y ago
My issue with host and version at the beginning of the log is that they'll roll away when your logs rotate. If you've got a service that's rarely taken down, anything written to the front of the logs is likely long gone by the time you have a problem. That said, there may be a better way to handle these two. I certainly don't like repeating information if it's not necessary.
- nitrogen 14y agoYou could just print the version, etc. again when logrotate sends your daemon a SIGHUP.
- trotter_cashion 14y agoAhh... never thought of doing that. I like it.
- eru 14y ago> I certainly don't like repeating information if it's not necessary. On what grounds?