Home » Mailing lists » Devel » [PATCH, try2, 0/3] Separate logfile and console loglevel
Re: Separate logfile and console loglevel [message #8751 is a reply to message #8749] |
Tue, 05 December 2006 12:07 |
kfh
Messages: 28 Registered: October 2006
|
Junior Member |
|
|
On Tuesday den 5. December 2006 12:40, Igor Sukhih wrote:
> Kristian F. Høgh wrote:
> > On Tuesday den 5. December 2006 11:47, Igor Sukhih wrote:
> >> Kristian F. Høgh wrote:
> >>> On Thursday den 30. November 2006 14:59, Dmitry Mishin wrote:
> >>>> On Wednesday 29 November 2006 20:37, Kristian Høgh wrote:
> >>>>> Separate logfile and console loglevel
> >>>>> The separation is implemented as follows
> >>>>>
> >>>>> 1: split --quite and --verbose from LOG_LEVEL
> >>>>> console loglevel is 0 as default
> >>>>
> >>>> This patch make sense.
> >>>
> >>> I worked on the patch, made --verbose accept argument (--verbose=<int>)
> >>> Added new parameter VERBOSE=<int> to /etc/vz/vz.conf. Default is 1 if
> >>> unset. --verbose alone increments by 1
> >>>
> >>>>> 2: Make messages more quiet by default
> >>>>> logger(0,...) -> logger(1, ...)
> >>>>>
> >>>>> 3: Make logfile more verbose by default
> >>>>> LOG_LEVEL=2
> >>>>
> >>>> Why do you need them? For me, it is convinient to see at the VE start,
> >>>> which IP it has. It is better, than additional `vzlist` later.
> >>>
> >>> If I use a script to start 10 VEs, it would be nice to see only partial
> >>> info. I could do that with --verbose=0. If one fails I can use
> >>> --verbose=2 What do you think about the output below?
> >>
> >> I'm Ok with it the only problem the --verbose option already released
> >> and this is can break already worked scripts.
> >
> > --verbose still works. It increments current verbose by 1.
> > If I run:
> > vzctl --verbose=0 --verbose --verbose start 1010
> > verbose will be 2 (0 + 1 + 1)
>
> If I correctly understand you will process --verbose and --verbose=0
> the same way?
> So 'vzctl --verbose ' will work as well?
Yes it will.
If /etc/vz/vz.conf contains VERBOSE=1 (or no VERBOSE at all)
vzctl --verbose ..., will result in verbose level 2
If /etc/vz/vz.conf contains VERBOSE=0, the command:
vzctl --verbose ..., will result in verbose level 1
If /etc/vz/vz.conf contains VERBOSE=2, the command:
vzctl --verbose=0 --verbose ..., will result in verbose level 1,
as VERBOSE is ignored if commandline contains --verbose="number"
<Stupid example>
/etc/vz/vz.conf contains VERBOSE=99
vzctl --verbose --verbose=1 --verbose --verbose ...
verbose=99, +1, verbose=1, +1, +1. The resulting verbose will be 3:
</Stupid example>
/Kristian.
|
|
|
|
|
[PATCH, try2, 0/3] Separate logfile and console loglevel
|
|
|
Re: [PATCH, try2, 0/3] Separate logfile and console loglevel
|
|
|
Re: [PATCH, try2, 0/3] Separate logfile and console loglevel
By: kfh on Thu, 30 November 2006 14:14
|
|
|
Re: Separate logfile and console loglevel
By: kfh on Tue, 05 December 2006 10:36
|
|
|
Re: Separate logfile and console loglevel
|
|
|
Re: Separate logfile and console loglevel
By: kfh on Tue, 05 December 2006 11:07
|
|
|
Re: Separate logfile and console loglevel
|
|
|
Re: Separate logfile and console loglevel
By: kfh on Tue, 05 December 2006 12:07
|
Goto Forum:
Current Time: Mon Jul 15 04:39:31 GMT 2024
Total time taken to generate the page: 0.02318 seconds
|