[Devel] [PATCH, try3, 0/3] Separate logfile and console loglevel
Kristian Høgh
kfh.openvzmail at kfh.dk
Thu Dec 7 07:46:04 PST 2006
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.
> I'd rather have a config option than an alias.
Me too
/Kristian.
More information about the Devel
mailing list