>
>> On Aug 29, 2015, at 9:41 PM, Nicholas Duane wrote:
>>
>> Ideally that I couldn't turn it off.
>> Thanks,Nick
>>
>> Original message
>> From: Ralph Goers
>> Date: 08/29/2015 9:51 PM (GMT-07:00)
>> To: Log4J Users
Log4J Users List
> Subject: Re: custom levels via configuration
>
> OFF has a value of 0. What would it mean to have a value less than that?
>
> Ralph
>
>> On Aug 29, 2015, at 7:22 PM, Nicholas Duane wrote:
>>
>> I got log4j 2.3 installed and verified that c
Ideally that I couldn't turn it off.
Thanks,Nick
Original message
From: Ralph Goers
Date: 08/29/2015 9:51 PM (GMT-07:00)
To: Log4J Users List
Subject: Re: custom levels via configuration
OFF has a value of 0. What would it mean to have a value less than that?
Ralph
a negative number.
> Is that by design?
>
> Thanks,
> Nick
>
>> From: nic...@msn.com
>> To: log4j-user@logging.apache.org
>> Subject: RE: custom levels via configuration
>> Date: Wed, 26 Aug 2015 20:34:13 -0400
>>
>> That would certainly be a p
I got log4j 2.3 installed and verified that custom levels are working for me
now. However, I did noticed you can't set the intValue to a negative number.
Is that by design?
Thanks,
Nick
> From: nic...@msn.com
> To: log4j-user@logging.apache.org
> Subject: RE: custom levels via
That would certainly be a possible explanation. I'm working on figuring out
how to upgrade to log4j 2.3. Hopefully that will solve my custom levels issue.
Thanks,
Nick
> Subject: Re: custom levels via configuration
> From: ralph.go...@dslextreme.com
> Date: Wed, 26 Aug 2015
he.logging.log4j.core.LoggerContext.start(LoggerContext.java:146)
>at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:75)
>at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
>
It seems my custom levels aren't working as I'm getting null from
Level.getLevel() when passing those custom level names.
Thanks,
Nick
> Date: Thu, 27 Aug 2015 08:34:43 +0900
> Subject: Re: custom levels via configuration
> From: remko.po...@gmail.com
> To: log4j-u
oth were not found from my HelloClass. And I had sent out some log4j
> logging in where there was a warning which I assume was related to me using
> INFOM1 in the threshold filter.
>
> Thanks,
> Nick
>
> > Date: Thu, 27 Aug 2015 08:20:20 +0900
> > Subject: Re: cu
Both were not found from my HelloClass. And I had sent out some log4j logging
in where there was a warning which I assume was related to me using INFOM1 in
the threshold filter.
Thanks,
Nick
> Date: Thu, 27 Aug 2015 08:20:20 +0900
> Subject: Re: custom levels via configuration
Nick,
What was the output of this program? Were both INFOM1 and INFOP1 not found,
or was INFOM1 found (because it is used in the ThresholdFilter), but not
INFOP1?
Remko
On Thu, Aug 27, 2015 at 3:19 AM, Nicholas Duane wrote:
>
>
>
> On to my next problem. I'm trying to define a custom level in
che.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
> at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:473)
> at HelloWorld.(HelloWorld.java:7)
>
> Thanks,
> Nick
>
> > Date: Wed, 26 Aug 2015 12:36:40 -0700
> >
ing.log4j.LogManager.getLogger(LogManager.java:473)
at HelloWorld.(HelloWorld.java:7)
Thanks,
Nick
> Date: Wed, 26 Aug 2015 12:36:40 -0700
> Subject: Re: custom levels via configuration
> From: garydgreg...@gmail.com
> To: log4j-user@logging.apache.org
>
> We've never r
12:34:45 -0700
> > Subject: Re: custom levels via configuration
> > From: garydgreg...@gmail.com
> > To: log4j-user@logging.apache.org
> >
> > On Wed, Aug 26, 2015 at 11:46 AM, Gary Gregory
> > wrote:
> >
> > > This:
> > >
>
Yes I am a true noob to java and linux and log4j.
What is gitmaster? I assume related to github somehow? How can I see the test
you created? Is there a link you can provide?
Thanks,
Nick
> Date: Wed, 26 Aug 2015 12:34:45 -0700
> Subject: Re: custom levels via configuration
> From:
orld'. I'm running fedora 21. When I do a 'yum list log4j' it says
> I have 2.0-1.fc21.
>
> Thanks,
> Nick
>
> > Date: Wed, 26 Aug 2015 11:46:51 -0700
> > Subject: Re: custom levels via configuration
> > From: garydgreg...@gmail.com
> > To
On Wed, Aug 26, 2015 at 11:46 AM, Gary Gregory
wrote:
> This:
>
>
>
> is only going to match:
>
> static Logger log = LogManager.getLogger(HelloWorld.class.getName());
>
> if the class in unpackaged, which it looks it is based on this paste but I
> want to double check that you did not omit anyt
1. When I do a 'yum list log4j' it says I have 2.0-1.fc21.
Thanks,
Nick
> Date: Wed, 26 Aug 2015 11:46:51 -0700
> Subject: Re: custom levels via configuration
> From: garydgreg...@gmail.com
> To: log4j-user@logging.apache.org
>
> This:
>
>
>
> is o
This:
is only going to match:
static Logger log = LogManager.getLogger(HelloWorld.class.getName());
if the class in unpackaged, which it looks it is based on this paste but I
want to double check that you did not omit anything from the example.
Are you using the latest version (2.3)?.
I just
On to my next problem. I'm trying to define a custom level in configuration.
Not sure if it's working or not. However, when I attempt to get the level for
that custom level I get back null, which I wasn't expecting. Here is the
log4j2.xml config file:
20 matches
Mail list logo