Re: Logger names for nested classes

2017-08-12 Thread Gary Gregory
On Sat, Aug 12, 2017 at 1:30 PM, Dominik Psenner  wrote:

> If it is a private class it might not be sensible to have that class name
> in the logfiles. If it is public the class could and should probably be
> refactored. ;-)
>
> I'm only a little afraid of the dollar sign. It is often a bash variable
> and thus bound to be typo prone when used for greps, configurations, ..
>
> Could a logger name attribute be an option?
>

What do you mean?

Gary

>
> 2017-08-12 20:44 GMT+02:00 Gary Gregory :
>
> > Hi,
> >
> > Why does that matter?
> >
> > Gary
> >
> > On Aug 12, 2017 12:34, "Dominik Psenner"  wrote:
> >
> > > Are the nested classes private or public?
> > >
> > > 2017-08-12 20:29 GMT+02:00 Gary Gregory :
> > >
> > > > Hi All,
> > > >
> > > > I you use nested classes to build loggers, you end up with logger
> names
> > > > like A$N1, A$N2 and so on.
> > > >
> > > > If you then set a logger level in a config using "A", it does not
> > affect
> > > > A$N1 and A$N2 as you might expect, since "$" is not a ".".
> > > >
> > > > What about treating "$" like a "."?
> > > >
> > > > Thoughts?
> > > >
> > > > Gary
> > > >
> > >
> > >
> > >
> > > --
> > > Dominik Psenner
> > >
> >
>
>
>
> --
> Dominik Psenner
>


Re: Logger names for nested classes

2017-08-12 Thread Dominik Psenner
If it is a private class it might not be sensible to have that class name
in the logfiles. If it is public the class could and should probably be
refactored. ;-)

I'm only a little afraid of the dollar sign. It is often a bash variable
and thus bound to be typo prone when used for greps, configurations, ..

Could a logger name attribute be an option?

2017-08-12 20:44 GMT+02:00 Gary Gregory :

> Hi,
>
> Why does that matter?
>
> Gary
>
> On Aug 12, 2017 12:34, "Dominik Psenner"  wrote:
>
> > Are the nested classes private or public?
> >
> > 2017-08-12 20:29 GMT+02:00 Gary Gregory :
> >
> > > Hi All,
> > >
> > > I you use nested classes to build loggers, you end up with logger names
> > > like A$N1, A$N2 and so on.
> > >
> > > If you then set a logger level in a config using "A", it does not
> affect
> > > A$N1 and A$N2 as you might expect, since "$" is not a ".".
> > >
> > > What about treating "$" like a "."?
> > >
> > > Thoughts?
> > >
> > > Gary
> > >
> >
> >
> >
> > --
> > Dominik Psenner
> >
>



-- 
Dominik Psenner


Jenkins build is still unstable: Log4j 2.x #2974

2017-08-12 Thread Apache Jenkins Server
See 




Re: Logger names for nested classes

2017-08-12 Thread Gary Gregory
Hi,

Why does that matter?

Gary

On Aug 12, 2017 12:34, "Dominik Psenner"  wrote:

> Are the nested classes private or public?
>
> 2017-08-12 20:29 GMT+02:00 Gary Gregory :
>
> > Hi All,
> >
> > I you use nested classes to build loggers, you end up with logger names
> > like A$N1, A$N2 and so on.
> >
> > If you then set a logger level in a config using "A", it does not affect
> > A$N1 and A$N2 as you might expect, since "$" is not a ".".
> >
> > What about treating "$" like a "."?
> >
> > Thoughts?
> >
> > Gary
> >
>
>
>
> --
> Dominik Psenner
>


Re: Logger names for nested classes

2017-08-12 Thread Dominik Psenner
Are the nested classes private or public?

2017-08-12 20:29 GMT+02:00 Gary Gregory :

> Hi All,
>
> I you use nested classes to build loggers, you end up with logger names
> like A$N1, A$N2 and so on.
>
> If you then set a logger level in a config using "A", it does not affect
> A$N1 and A$N2 as you might expect, since "$" is not a ".".
>
> What about treating "$" like a "."?
>
> Thoughts?
>
> Gary
>



-- 
Dominik Psenner


Logger names for nested classes

2017-08-12 Thread Gary Gregory
Hi All,

I you use nested classes to build loggers, you end up with logger names
like A$N1, A$N2 and so on.

If you then set a logger level in a config using "A", it does not affect
A$N1 and A$N2 as you might expect, since "$" is not a ".".

What about treating "$" like a "."?

Thoughts?

Gary


Jenkins build became unstable: Log4j 2.x #2973

2017-08-12 Thread Apache Jenkins Server
See