Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-22 Thread Remko Popma
gt;> wrote: >>>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> When someone calls any of the init methods like >>>>>>>>>> org.apache

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-22 Thread Ralph Goers
doing >>>>>>>>> LoggerContext.getLogger()? I guess I don’t really understand why >>> that >>>>>>> is a >>>>>>>>> good idea. Are you saying you have your own custom LoggerContext >>> and >>>>>>> that >>>>>>>>> you want to modify Log4j’s LoggerContext simply so you can modify >>>>> yours? >>>>>>>>> >>>>>>>>> Ralph >>>>>>>>> >>>>>>>>>> On Aug 21, 2017, at 3:01 PM, Gary Gregory >>> >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> My use case is that deep in the guts and call stack of my >>>>> server/app, I >>>>>>>>>> have a specific Core LoggerContext that I should/must use. Log4j >>> and >>>>>>>>> other >>>>>>>>>> components must co-exist in a long-lived server that have modules >>>>> that >>>>>>>>> are >>>>>>>>>> constantly re-initialized/re-configured during development and >>>>> testing >>>>>>>>>> phases. During acceptance and production, the are fewer >>>>>>> reconfigurations, >>>>>>>>>> but they do happen. The bottom line is that most logging code >>> dishes >>>>>>> out >>>>>>>>>> Loggers out of specific LoggerContext instances and not out of the >>>>>>>>>> LogManager classes (only in a few rare places.) >>>>>>>>>> >>>>>>>>>> Gary >>>>>>>>>> >>>>>>>>>> On Mon, Aug 21, 2017 at 3:47 PM, Ralph Goers < >>>>>>> ralph.go...@dslextreme.com >>>>>>>>>> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Did you ask this question last week? Why is it needed? Why can’t >>>>> this >>>>>>>>> be >>>>>>>>>>> handled in LogManager? >>>>>>>>>>> >>>>>>>>>>> Ralph >>>>>>>>>>> >>>>>>>>>>>> On Aug 21, 2017, at 2:10 PM, Gary Gregory < >>> garydgreg...@gmail.com> >>>>>>>>>>> wrote: >>>>>>>>>>>> >>>>>>>>>>>> Hi All: >>>>>>>>>>>> >>>>>>>>>>>> I have a need for the shortcut method >>>>>>>>>>>> org.apache.logging.log4j.core.LoggerContext getLogger(Class) >>> which >>>>>>>>> would >>>>>>>>>>>> use getCannonicalName(). >>>>>>>>>>>> >>>>>>>>>>>> Any objection to adding that? >>>>>>>>>>>> >>>>>>>>>>>> Gary >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> >>>>> >>> >>> >>

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-22 Thread Matt Sicker
gt; (String, > > > >> >>>>> ClassLoader, String), you get a Core LoggerContext, and that's > > > what > > > >> >>>> you've > > > >> >>>>> got to work with... Why is that a bad idea? That's the

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-22 Thread Gary Gregory
30 PM, Ralph Goers < > > >> >> ralph.go...@dslextreme.com > > >> >>>>> > > >> >>>>> wrote: > > >> >>>>> > > >> >>>>>> So you are saying that your application is getting Loggers by > > doing > > >> >>>>>> LoggerContext.getLogger()? I guess I don’t really understand > why > > >> that > > >> >>>> is a > > >> >>>>>> good idea. Are you saying you have your own custom > LoggerContext > > >> and > > >> >>>> that > > >> >>>>>> you want to modify Log4j’s LoggerContext simply so you can > modify > > >> >> yours? > > >> >>>>>> > > >> >>>>>> Ralph > > >> >>>>>> > > >> >>>>>>> On Aug 21, 2017, at 3:01 PM, Gary Gregory < > > garydgreg...@gmail.com > > >> > > > >> >>>>>> wrote: > > >> >>>>>>> > > >> >>>>>>> My use case is that deep in the guts and call stack of my > > >> >> server/app, I > > >> >>>>>>> have a specific Core LoggerContext that I should/must use. > Log4j > > >> and > > >> >>>>>> other > > >> >>>>>>> components must co-exist in a long-lived server that have > > modules > > >> >> that > > >> >>>>>> are > > >> >>>>>>> constantly re-initialized/re-configured during development and > > >> >> testing > > >> >>>>>>> phases. During acceptance and production, the are fewer > > >> >>>> reconfigurations, > > >> >>>>>>> but they do happen. The bottom line is that most logging code > > >> dishes > > >> >>>> out > > >> >>>>>>> Loggers out of specific LoggerContext instances and not out of > > the > > >> >>>>>>> LogManager classes (only in a few rare places.) > > >> >>>>>>> > > >> >>>>>>> Gary > > >> >>>>>>> > > >> >>>>>>> On Mon, Aug 21, 2017 at 3:47 PM, Ralph Goers < > > >> >>>> ralph.go...@dslextreme.com > > >> >>>>>>> > > >> >>>>>>> wrote: > > >> >>>>>>> > > >> >>>>>>>> Did you ask this question last week? Why is it needed? Why > > can’t > > >> >> this > > >> >>>>>> be > > >> >>>>>>>> handled in LogManager? > > >> >>>>>>>> > > >> >>>>>>>> Ralph > > >> >>>>>>>> > > >> >>>>>>>>> On Aug 21, 2017, at 2:10 PM, Gary Gregory < > > >> garydgreg...@gmail.com> > > >> >>>>>>>> wrote: > > >> >>>>>>>>> > > >> >>>>>>>>> Hi All: > > >> >>>>>>>>> > > >> >>>>>>>>> I have a need for the shortcut method > > >> >>>>>>>>> org.apache.logging.log4j.core.LoggerContext > getLogger(Class) > > >> which > > >> >>>>>> would > > >> >>>>>>>>> use getCannonicalName(). > > >> >>>>>>>>> > > >> >>>>>>>>> Any objection to adding that? > > >> >>>>>>>>> > > >> >>>>>>>>> Gary > > >> >>>>>>>> > > >> >>>>>>>> > > >> >>>>>>>> > > >> >>>>>> > > >> >>>>>> > > >> >>>>>> > > >> >>>> > > >> >>>> > > >> >>>> > > >> >> > > >> >> > > >> >> > > >> > > >> > > > > > >

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-22 Thread Remko Popma
gt; > >> >>>>>> So you are saying that your application is getting Loggers by > doing > >> >>>>>> LoggerContext.getLogger()? I guess I don’t really understand why > >> that > >> >>>> is a > >> >>>>>> g

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-22 Thread Gary Gregory
own custom LoggerContext >> and >> >>>> that >> >>>>>> you want to modify Log4j’s LoggerContext simply so you can modify >> >> yours? >> >>>>>> >> >>>>>> Ralph >> >>>>>> >> >&

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Gary Gregory
and call stack of my > >> server/app, I > >>>>>>> have a specific Core LoggerContext that I should/must use. Log4j > and > >>>>>> other > >>>>>>> components must co-exist in a long-lived server that have modules > >> that > >>>>>> are > >>>>>>> constantly re-initialized/re-configured during development and > >> testing > >>>>>>> phases. During acceptance and production, the are fewer > >>>> reconfigurations, > >>>>>>> but they do happen. The bottom line is that most logging code > dishes > >>>> out > >>>>>>> Loggers out of specific LoggerContext instances and not out of the > >>>>>>> LogManager classes (only in a few rare places.) > >>>>>>> > >>>>>>> Gary > >>>>>>> > >>>>>>> On Mon, Aug 21, 2017 at 3:47 PM, Ralph Goers < > >>>> ralph.go...@dslextreme.com > >>>>>>> > >>>>>>> wrote: > >>>>>>> > >>>>>>>> Did you ask this question last week? Why is it needed? Why can’t > >> this > >>>>>> be > >>>>>>>> handled in LogManager? > >>>>>>>> > >>>>>>>> Ralph > >>>>>>>> > >>>>>>>>> On Aug 21, 2017, at 2:10 PM, Gary Gregory < > garydgreg...@gmail.com> > >>>>>>>> wrote: > >>>>>>>>> > >>>>>>>>> Hi All: > >>>>>>>>> > >>>>>>>>> I have a need for the shortcut method > >>>>>>>>> org.apache.logging.log4j.core.LoggerContext getLogger(Class) > which > >>>>>> would > >>>>>>>>> use getCannonicalName(). > >>>>>>>>> > >>>>>>>>> Any objection to adding that? > >>>>>>>>> > >>>>>>>>> Gary > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>> > >>>> > >>>> > >> > >> > >> > >

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Ralph Goers
/app, I >>>>>>> have a specific Core LoggerContext that I should/must use. Log4j and >>>>>> other >>>>>>> components must co-exist in a long-lived server that have modules >> that >>>>>> are >>>>>>&g

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Gary Gregory
configured during development and > testing > >>>>> phases. During acceptance and production, the are fewer > >> reconfigurations, > >>>>> but they do happen. The bottom line is that most logging code dishes > >> out > >>>>&g

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Ralph Goers
t;> out >>>>> Loggers out of specific LoggerContext instances and not out of the >>>>> LogManager classes (only in a few rare places.) >>>>> >>>>> Gary >>>>> >>>>> On Mon, Aug 21, 2017 at 3:47 PM, Ralph Goers < >> ralph.go...@dslextreme.com >>>>> >>>>> wrote: >>>>> >>>>>> Did you ask this question last week? Why is it needed? Why can’t this >>>> be >>>>>> handled in LogManager? >>>>>> >>>>>> Ralph >>>>>> >>>>>>> On Aug 21, 2017, at 2:10 PM, Gary Gregory >>>>>> wrote: >>>>>>> >>>>>>> Hi All: >>>>>>> >>>>>>> I have a need for the shortcut method >>>>>>> org.apache.logging.log4j.core.LoggerContext getLogger(Class) which >>>> would >>>>>>> use getCannonicalName(). >>>>>>> >>>>>>> Any objection to adding that? >>>>>>> >>>>>>> Gary >>>>>> >>>>>> >>>>>> >>>> >>>> >>>> >> >> >>

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Gary Gregory
but they do happen. The bottom line is that most logging code > dishes > > > out > > > >>> Loggers out of specific LoggerContext instances and not out of the > > > >>> LogManager classes (only in a few rare places.) > > > >>> > > > >>> Gary > > > >>> > > > >>> On Mon, Aug 21, 2017 at 3:47 PM, Ralph Goers < > > > ralph.go...@dslextreme.com > > > >>> > > > >>> wrote: > > > >>> > > > >>>> Did you ask this question last week? Why is it needed? Why can’t > > this > > > >> be > > > >>>> handled in LogManager? > > > >>>> > > > >>>> Ralph > > > >>>> > > > >>>>> On Aug 21, 2017, at 2:10 PM, Gary Gregory < > garydgreg...@gmail.com> > > > >>>> wrote: > > > >>>>> > > > >>>>> Hi All: > > > >>>>> > > > >>>>> I have a need for the shortcut method > > > >>>>> org.apache.logging.log4j.core.LoggerContext getLogger(Class) > which > > > >> would > > > >>>>> use getCannonicalName(). > > > >>>>> > > > >>>>> Any objection to adding that? > > > >>>>> > > > >>>>> Gary > > > >>>> > > > >>>> > > > >>>> > > > >> > > > >> > > > >> > > > > > > > > > > > > > > > -- > Matt Sicker >

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Matt Sicker
nce and production, the are fewer > > reconfigurations, > > >>> but they do happen. The bottom line is that most logging code dishes > > out > > >>> Loggers out of specific LoggerContext instances and not out of the > > >>> LogManager classes (only i

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Gary Gregory
ic LoggerContext instances and not out of the > >>> LogManager classes (only in a few rare places.) > >>> > >>> Gary > >>> > >>> On Mon, Aug 21, 2017 at 3:47 PM, Ralph Goers < > ralph.go...@dslextreme.com > >>>

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Ralph Goers
n a few rare places.) >>> >>> Gary >>> >>> On Mon, Aug 21, 2017 at 3:47 PM, Ralph Goers >> >>> wrote: >>> >>>> Did you ask this question last week? Why is it needed? Why can’t this >> be >>>> handled in

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Gary Gregory
ers > > > wrote: > > > >> Did you ask this question last week? Why is it needed? Why can’t this > be > >> handled in LogManager? > >> > >> Ralph > >> > >>> On Aug 21, 2017, at 2:10 PM, Gary Gregory > >> wrote: > >

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Ralph Goers
> >>> On Aug 21, 2017, at 2:10 PM, Gary Gregory >> wrote: >>> >>> Hi All: >>> >>> I have a need for the shortcut method >>> org.apache.logging.log4j.core.LoggerContext getLogger(Class) which would >>> use getCannonicalName(). >>> >>> Any objection to adding that? >>> >>> Gary >> >> >>

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Gary Gregory
> > org.apache.logging.log4j.core.LoggerContext getLogger(Class) which would > > use getCannonicalName(). > > > > Any objection to adding that? > > > > Gary > > >

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Ralph Goers
Did you ask this question last week? Why is it needed? Why can’t this be handled in LogManager? Ralph > On Aug 21, 2017, at 2:10 PM, Gary Gregory wrote: > > Hi All: > > I have a need for the shortcut method > org.apache.logging.log4j.core.LoggerContext getLogger(Class)

Re: org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Matt Sicker
No object for core.LoggerContext. Too late to add it to the API, but LogManager already handles that now, right? On 21 August 2017 at 16:10, Gary Gregory wrote: > Hi All: > > I have a need for the shortcut method > org.apache.logging.log4j.core.LoggerContext getLogger(Class) which

org.apache.logging.log4j.core.LoggerContext getLogger(Class)

2017-08-21 Thread Gary Gregory
Hi All: I have a need for the shortcut method org.apache.logging.log4j.core.LoggerContext getLogger(Class) which would use getCannonicalName(). Any objection to adding that? Gary