[Devel] [PATCH, try3, 0/3] Separate logfile and console loglevel

Kristian Høgh kfh.openvzmail at kfh.dk
Thu Dec 7 09:43:05 PST 2006


On Thursday 07 December 2006 17:09, Igor Sukhih wrote:
> Kristian H?gh wrote:
> > On Thursday 07 December 2006 14:23, Kir Kolyshkin wrote:
> >> Dmitry Mishin wrote:
> >>> On Thursday 07 December 2006 15:47, Igor Sukhih wrote:
> >>>> Kir Kolyshkin wrote:
> >>>>> Kristian F. Hц╦gh wrote:
> >>>>>> If I type "vzctl set 1001 ...", I would asume everything went OK,
> >>>>>> if I get no output.
> >>>>>
> >>>>> Agreed, this is true UNIX way :)
> >>>>
> >>>> Lets do not display any info messages by default, go by UNIX way :)
> >
> > Thats not what the patches do.
> > If VERBOSE=0 a start will generate 3-5lines of code. (Down from 10)
> > If VERBOSE=-1 it will be quiet.
> > If VERBOSE=1 a start will generate the same as today
> > (Except "Running script...")
> >
> >>> Probably, global poll helps? ;)
> >>>
> >>> I think, the default console level is secondary question indeed.
> >
> > Incrementing logger(..) and LOG_LEVEL, will not touch default output.
> > And will give option for VERBOSE=0 or --verbose=0
> >
> >>> Split of console level and log level is usefull. So, my opinion is to
> >>> leave default level AS IS, because somebody may use this output
> >>> somewhere in his scripts (it's bad, but who knows these users? ;) ).
> >>> Kristian may intro alias in his shell in order to decrease level to `no
> >>> output` value.
> >
> > An option. It stille requires some logger(0, ...) -> logger(1, ...),
> > as I don't want "no output" but more quiet output.
>
> Please describe NEW logger policy, how I will decide that log level
> should be used for messages to be still quiet for you?
I don't know. Today I see the value 10 some places...

I just think level 0 is used too much.
Split level 0 to 0 and 1 (Make default 1)
1 is fine as 2
2 is fine as 3
All above 3 -> 3

-1 Error
0. Important/overwiev/no values  (mounting, setting limits, starting up ...)
1. Info (Memory/CPU values)
2. verbose (Quota values, script names, mount point name)
3. debug (Ignored parameter, open tty, set iptables mask)

> --
> Igor.
/Kristian.




More information about the Devel mailing list