Information: Forum is in read-only mode
For details and other support options see

logstream default facility/severity

Diskussions related to the development of PhpLogCon

Moderator: alorbach

Google Ads

logstream default facility/severity

Postby rgerhards » 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? ;)

Site Admin
Posts: 3807
Joined: Thu Feb 13, 2003 11:57 am

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

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

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

Postby alorbach » 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.
Site Admin
Posts: 1627
Joined: Thu Feb 13, 2003 11:55 am

Google Ads

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 2 guests