Syslogd logging severity levels
Is there any way to get syslog to include the severity level to the messages it writes to log files?
Thanks. |
Hi,
Not that I know of. You could send every level to separate files (next to what you are already having). Add something like this to your /etc/syslog.conf (and restart syslogd afterwards): Code:
# ------------------------------------------------------------------ # |
Thanks, druuna. I thought of that but unfortunately some of the levels need to be in the same log file.
|
Hi,
You only need to combine some of the lines to do that. If you don't know how: syslog.conf's manpage has an example of that, or take a look here Here's one to get you going: *.=info;*.=notice /var/log/log.5-6-info-notice => All info and notice messages to one file. |
All times are GMT -5. The time now is 10:24 PM. |