why ubic is not using syslog

10 views
Skip to first unread message

bessarabov

unread,
Aug 30, 2010, 5:46:36 AM8/30/10
to Ubic
After installing from deb file ubic by default writes to log files
situated in /var/log/ubic/

The other way of writing log files is to use syslog. It is very easy
to implement and it has an advantage that it is a standard and you can
use a lot of tools to monitor/parse logs. So why ubic writes it own
log files instead of using syslog?

By the way, this is not a feature request I just want to find out why
such design was chosen. =)

Вячеслав Матюхин

unread,
Aug 30, 2010, 11:08:20 AM8/30/10
to ubic...@googlegroups.com

Which syslog are you talking about?
sysklogd? rsyslog? syslog-ng? :)

The point is, I think it's a good thing for the debian package to work out-of-box, and most syslog servers don't support any kind of conf-enabled/ dir for configs.
This means I can't put configs in ubic deb package which would configure syslog to write logs to /var/log/ubic/.
And /var/log/ubic/ seems better than default /var/log/syslog.

Also, I like to run ubic-watchdog from terminal from time to time.
And stderr is still worth preserving, because some services could print warnings.

Better solution would be to depend on Log::Log4perl and put log4perl config in /etc/ubic/logger.cfg, so that anyone could modify it according to their needs.
But I'm still not sure if this additional dependency is worth it.

--
Вячеслав Матюхин
http://friendfeed.com/mmcleric
http://berekuk.ru

Reply all
Reply to author
Forward
0 new messages