Hacker News new | past | comments | ask | show | jobs | submit login

Couldn't you output the host and version at the beginning of the log? Any tool that transforms the logs (splicing together logs from different servers) should include these bits in it's output.

Also, why don't you use a sortable form for time? (With the most significant parts first.)




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.


You could just print the version, etc. again when logrotate sends your daemon a SIGHUP.


Ahh... never thought of doing that. I like it.


> I certainly don't like repeating information if it's not necessary.

On what grounds?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: