How do you limit VDR-log to user.log only. Now it writes them all over the place, debug, syslog, messages, etc.
On Fri, Dec 02, 2005, Lauri Tischler wrote:
How do you limit VDR-log to user.log only. Now it writes them all over the place, debug, syslog, messages, etc.
Not sure what you're asking for, but I use the attached patch since I don't want vdr to write into syslog.
You need the following in Make.config to activate it:
CXXFLAGS += -DLOG_TO_STDOUT
HTH, Johannes
Lauri Tischler wrote:
How do you limit VDR-log to user.log only. Now it writes them all over the place, debug, syslog, messages, etc.
The syslog daemon decides about this. VDR logs into system log, using "user" facility and "err"/"info"/"debug" priority.
Where these logs go to is defined in /etc/syslog.conf or /etc/syslog-ng.conf or similar file for your syslog daemon.
Cheers,
Udo
Hi! To log all VDR log messages only to /var/log/vdr.log
insert this into your /etc/syslog.conf: local6.* /var/log/vdr.log
and then edit your runvdr script and start vdr with parameter: -l x.y (param is lowercase L, while x is your logging level, see man vdr and y rhe logging facility of syslog in my case 6 for local6)
Regards
Marco
Lauri Tischler wrote:
How do you limit VDR-log to user.log only. Now it writes them all over the place, debug, syslog, messages, etc.
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Marco Göbenich wrote:
Hi! To log all VDR log messages only to /var/log/vdr.log
insert this into your /etc/syslog.conf: local6.* /var/log/vdr.log
and then edit your runvdr script and start vdr with parameter: -l x.y (param is lowercase L, while x is your logging level, see man vdr and y rhe logging facility of syslog in my case 6 for local6)
Yes, this now logs stuff to vdr.log, but some vdr-messages still end up in syslog, debug and messages logfiles.
Lauri Tischler wrote:
Marco Göbenich wrote:
insert this into your /etc/syslog.conf: local6.* /var/log/vdr.log
Yes, this now logs stuff to vdr.log, but some vdr-messages still end up in syslog, debug and messages logfiles.
You have to tell syslog not to add these messages to the other log files. The format of the syslog.conf is well documented, see man syslog.conf.
For a hint: This line writes /var/log/syslog for me:
*.*;auth,authpriv.none -/var/log/syslog
This means: Log everything of all levels (*.*), but for auth and authpriv, log level none.
This would also ignore all local6 messages:
*.*;auth,authpriv.none;local6.none -/var/log/syslog
You probably have to change some more lines that match *. in a similar way.
Cheers,
Udo
Udo Richter wrote:
Lauri Tischler wrote:
Marco Göbenich wrote:
insert this into your /etc/syslog.conf: local6.* /var/log/vdr.log
Yes, this now logs stuff to vdr.log, but some vdr-messages still end up in syslog, debug and messages logfiles.
You have to tell syslog not to add these messages to the other log files. The format of the syslog.conf is well documented, see man syslog.conf.
For a hint: This line writes /var/log/syslog for me:
*.*;auth,authpriv.none -/var/log/syslog
This means: Log everything of all levels (*.*), but for auth and authpriv, log level none.
This would also ignore all local6 messages:
*.*;auth,authpriv.none;local6.none -/var/log/syslog
You probably have to change some more lines that match *. in a similar way.
Yes, that did it, Thanks.
Hi!
I added local6.none to the line were syslog messages are configured.
Regards
Marco
Lauri Tischler wrote:
Marco Göbenich wrote:
Hi! To log all VDR log messages only to /var/log/vdr.log
insert this into your /etc/syslog.conf: local6.* /var/log/vdr.log
and then edit your runvdr script and start vdr with parameter: -l x.y (param is lowercase L, while x is your logging level, see man vdr and y rhe logging facility of syslog in my case 6 for local6)
Yes, this now logs stuff to vdr.log, but some vdr-messages still end up in syslog, debug and messages logfiles.
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr