logstream default facility/severity

Diskussions related to the development of PhpLogCon

logstream default facility/severity

Postby rgerhards on Wed Mar 12, 2008 8:05 am

If we look at plain old standard syslog log files, they do neither contain a facility or severity. phplogcon will work with those files. So facility and priority is missing. Bad, but not to avoid... well... maybe at least partly.

Many text logs contain messages of only a specific facility and some contain messages of only a specific severity. So I suggest that we add two fields to the text file stream config: default severity and facility. They may not be specified, but if they are, the configured value will be returned to the caller if the parser can obtain no actual value.

For example, if I know that a standard log file contains only local7 message, I can set the default facility to "local7" and every message will be returned with that (correct) facility. IMHO that's a much better user experience.

... and it should be more than trivial to implement ;)

Thoughts? Or implementation confirmation? ;)

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 901
Joined: Thu Feb 13, 2003 11:57 am

Postby mmeckelein on Wed Mar 12, 2008 1:55 pm

sounds good and indeed trivial to implement ;-)
mmeckelein
Adiscon Support
 
Posts: 167
Joined: Wed Mar 12, 2003 12:07 pm

Postby alorbach on Wed Mar 12, 2008 2:05 pm

I agree, the default value should be a general setting of the logstream config classes and also set within the logstream classes.
User avatar
alorbach
Site Admin
 
Posts: 788
Joined: Thu Feb 13, 2003 11:55 am


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron