VDR User wrote:
> Personally, I like the idea of vdr having a dedicated logfile.  And
> even more if the path/filename of this logfile can be defined by the
> user.
> 

It can, at least with syslog-ng. I added these statements to my
syslog-ng.conf:

destination df_vdr {
  file("/var/log/vdr.log" owner("root") group("vdr") perm(0640));
};

filter f_vdr   {     program("vdr"); };
filter f_novdr { not program("vdr"); };

log {
  source(s_all);
  filter(f_vdr);
  destination(df_vdr);
};

If you do not want, to have vdr log _also_ to the other log files, you
can use the f_novdr filter in those log-statements, e.g. in Debian:

# *.*;auth,authpriv.none          -/var/log/syslog
log {
        source(s_all);
        filter(f_syslog);
        filter(f_novdr);
        destination(df_syslog);
};

@Klaus: I see your problem. Let's leave it like this if it helps you.

@Stefan: Replacing syslog-logging with own file logging is not a
solution for my concern. I always welcomed the vdr way of logging as it
directly allowes to redirect the log to own destinations (even remotely)
adntools like logrotate also take care of not filling up the disk. But I
also see the need of a user/GUI program to have logging to something
else than syslog (which mostly can't be checked by an unpriveleged user).

So long,
-- 
Patrick Cernko | mailto:[EMAIL PROTECTED] | http://www.errror.org

"Das Wort WINDOWS stammt aus einem alten Sioux-Dialekt und bedeutet:
 Weisser Mann starrt durch Glasscheibe auf Sanduhr." (anonym)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

Reply via email to