Hello,
We are using log4j 1x in our application which we want to migrate to log4j 2.
i want to understand few things.
At moment we have a log4j.properties file which we load at the start of
application using PropertyConfigurator method
PropertyConfigurator.configure(log4jPropFileName);
log4j prope
You are correct that you need to convert your .properties file to an xml
file.
When I did this, I started with the sample xml files for the appenders
and just added in the items from the properties file one by one.
Instead of redundant sequential lines for nested properties like this:
foo
Dan, Thank you very much for reply.
I kind of got hold of xml file. now i am playing around with different policies
and things like that.
Regards,Mangat Rai
> Date: Tue, 3 Mar 2015 16:58:09 -0800
> From: wid...@gmail.com
> To: log4j-user@logging.apache.org
> Subject: Re: Migratin
> policies and things like that.
>
> Regards,Mangat Rai
>
>
>> Date: Tue, 3 Mar 2015 16:58:09 -0800
>> From: wid...@gmail.com
>> To: log4j-user@logging.apache.org
>> Subject: Re: Migrating from log4j 1x to 2x
>>
>> You are correct th
. what
can i change to satisfy my requirement.
Regards,Mangat Rai
> Subject: Re: Migrating from log4j 1x to 2x
> From: remko.po...@gmail.com
> Date: Thu, 5 Mar 2015 08:31:25 +0900
> To: log4j-user@logging.apache.org
>
> The log4j2 manual contains many xml fragments. In gene
: Mangat Rai mailto:mangat.go...@hotmail.com>>
Reply-To: Log4J Users List
mailto:log4j-user@logging.apache.org>>
Date: Thursday, March 5, 2015 at 2:39 PM
To: Log4J Users List
mailto:log4j-user@logging.apache.org>>
Subject: RE: Migrating from log4j 1x to 2x
I want to implement log4j
?
Regards,Mangat Rai
> From: jeff.s...@benefitfocus.com
> To: log4j-user@logging.apache.org
> Subject: Re: Migrating from log4j 1x to 2x
> Date: Fri, 6 Mar 2015 12:45:00 +
>
> I believe what you want to do is this (from the Log4j2 docs):
>
> The following XML fragme