zipplet / godaemon

Powerful daemoniser with nagios monitoring for Linux
MIT License
2 stars 0 forks source link

Writing godaemon logs, stdout and stderr to separate log files #10

Open justinoboyle opened 8 years ago

justinoboyle commented 8 years ago

This is a back-burner issue, but the option to separate stdout and stderror logs from the godaemon log would be a useful feature.

A configuration option for godaemon to use a separate godaemon log file, stdout log, and stderror log would probably be useful for keeping errors separate from normal logs.

(the single-log system should probably be kept for legacy support, as it could break existing parsers if changed)

3 addresses this a bit with the multiple loggers, but instead of a prefix, the option to output to a different file would probably be more efficient and easier to understand/parse.

zipplet commented 8 years ago

This is a good idea - I'll make it so you can specify stdout/stderr combined to a seperate file, or stdout/stderr to individual files. It will also mean some changes to the email configuration - you will need to tell it which logs you want it to tail when sending you the "I crashed!" email (I'll allow both, so you lose no functionality).

zipplet commented 8 years ago

This needs to go into the Simultaneous Task Support milestone because it requires multiple loggers to run at once (already supported, but it means extending the core to deal with it - which is happening anyway for that milestone)