Re: logging and propagation

2007-11-22 Thread Vinay Sajip
On Nov 22, 2:34 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > On Nov 22, 9:18 am, oj <[EMAIL PROTECTED]> wrote: > > Why not apply the same filter to the parent loggers? Of course, you can apply filters at the loggers or the handlers. The filters at the logger are checked first. If they pass, then t

Re: logging and propagation

2007-11-22 Thread Vinay Sajip
On Nov 22, 9:18 am, oj <[EMAIL PROTECTED]> wrote: > On Nov 22, 5:44 am, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > > > > On Nov 21, 11:38 am, oj <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I want to setuploggingwith two loggers: > > > > The child logger is used when something different needs to

Re: logging and propagation

2007-11-22 Thread oj
On Nov 22, 5:44 am, Vinay Sajip <[EMAIL PROTECTED]> wrote: > On Nov 21, 11:38 am, oj <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I want to setuploggingwith two loggers: > > > The child logger is used when something different needs to be done > > with the log record, and the log record will propa

Re: logging and propagation

2007-11-21 Thread Vinay Sajip
On Nov 21, 11:38 am, oj <[EMAIL PROTECTED]> wrote: > Hi, > > I want to setuploggingwith two loggers: > > The child logger is used when something different needs to be done > with the log record, and the log record will propagate and be logged > by the root logger as usual. > > However, there are ce

Re: logging and propagation

2007-11-21 Thread Diez B. Roggisch
Paul Rudin wrote: > oj <[EMAIL PROTECTED]> writes: > >> On Nov 21, 11:48 am, Paul Rudin <[EMAIL PROTECTED]> wrote: > >>> Loggers have a "propagate" attribute. If you set this to False in the >>> child then you should get what you want I think. >> >> No, because I want message to propagate usuall

Re: logging and propagation

2007-11-21 Thread Paul Rudin
oj <[EMAIL PROTECTED]> writes: > On Nov 21, 11:48 am, Paul Rudin <[EMAIL PROTECTED]> wrote: >> Loggers have a "propagate" attribute. If you set this to False in the >> child then you should get what you want I think. > > No, because I want message to propagate usually. There are only > specific i

Re: logging and propagation

2007-11-21 Thread oj
On Nov 21, 11:48 am, Paul Rudin <[EMAIL PROTECTED]> wrote: > oj <[EMAIL PROTECTED]> writes: > > Hi, > > > I want to setup logging with two loggers: > > > The child logger is used when something different needs to be done > > with the log record, and the log record will propagate and be logged > > b

Re: logging and propagation

2007-11-21 Thread Paul Rudin
oj <[EMAIL PROTECTED]> writes: > Hi, > > I want to setup logging with two loggers: > > The child logger is used when something different needs to be done > with the log record, and the log record will propagate and be logged > by the root logger as usual. > > However, there are certain times when

logging and propagation

2007-11-21 Thread oj
Hi, I want to setup logging with two loggers: The child logger is used when something different needs to be done with the log record, and the log record will propagate and be logged by the root logger as usual. However, there are certain times when I don't want a log record to propagate from the