[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Different logging formats, standardization...



On Fri, Sep 13, 2002 at 02:51:00PM +0200, Erich Schubert wrote:
> > > What is wrong with sending strings in a more standardized way to
> > > syslog?  Like beginning all strings with a verbose severity?
> > 
> > why dont we just get application to use the right priority instead?
> 
> Doesn't solve the problem that priorities aren't fine-grained enough for
> me, and that syslog doesn't write the priority into the logfile
> (only allows to write different priorities into different logfiles)
> 

How fine grained do you want? Syslog provides 8 log levels.

> There are warnings where i need to do something, and there are
> informational warnings (such as spam rejected)
> still both are real warnings and should use the warning syslog priority.

Why should the info messages use LOG_INFO and the warning use LOG_WARN.
Conveniently LOG_INFO is less than LOG_WARN.

> And i don't like syslog too much... i don't care if it's a posix
> standard, i'd like to have more advanced things...
> Lots of apps already use their own loggers instead of syslog.
> And lots of apps are built modular, so one could select in the init
> script wheter one wants logging to syslog or something else.

Syslog is very configurable. It can log to another machine or feed to other
programs. The reason why apache uses it's own log files is sheer volume. I
don't think syslog handles 100's of messages per second very well. Other
programs have their own reasons. I imagine also limitations on
configurability. Apache wants to be able to log to dozens of logfiles and
syslog can't do that.

> Why does apache not use syslog? because it's too limited for apache's
> needs. Same for dozens of other apps. And I'm not talking about people like 
> djb with their TAI time logging - which i don't like...
> but of the needs of newbie users, which are AFRAID of our current logs,
> they don't know how to deal with them or how to read them.

Every application has it's own requirements and history. I don't think
you're going convince anyone to change.
-- 
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.



Reply to: