[gccsdk] Syslog: DoggySoft vs. Unix

Adam lists at snowstone.org.uk
Sat May 26 12:33:23 PDT 2007


In message <4ee914dfaegdshaw at sagitta.demon.co.uk>, Graham Shaw wrote:

> but this gives numbers that are rather higher than would accord with the
> Doggysoft documentation: notice really ought to be less than 125, and
> warning no higher than 100.  Still it would be nice to have something that
> was linear,

Does it need to be linear? Given that the doggysoft scheme has more
levels than the unix one, the steps might slot in anywhere. In any
case...

> perhaps:
> 
>   0 <-> 0 (emergency)
>  20 <-> 1 (alert)
>  40 <-> 2 (critical)
>  60 <-> 3 (error)
>  80 <-> 4 (warning)
> 100 <-> 5 (notice)
> 120 <-> 6 (informational)
> 140 <-> 7 (debug)

...this isn't strictly linear since there's a kink at 140.


Here's a stab at a "non-linear" scheme:

0   <->             # Unix scheme doesn't account for armageddon!
10  <->             # ... or war
20  <-> Emergency
30  <-> Alert
40  <-> Critical    # Paraphrase: "critical should be less than 50"
50  <->
60  <-> Error
70  <->
80  <-> Warning
90  <->
100 <-> Notice      # This point seems to be fairly well defined
120 <->
130 <->
140 <->
150 <-> Information
160 <->
170 <->
180 <->
190 <->
200 <-> Debug
210 <->
220 <->
230 <->
240 <->
250 <->

Adam
-- 
Adam Richardson          Carpe Diem
http://www.snowstone.org.uk/riscos/




More information about the gcc mailing list