| Author |
Log4j rolling policy must be declared?
|
Muralidharan Raju
Greenhorn
Joined: Feb 24, 2011
Posts: 25
|
|
Hey folks,
i have a need of archiving the log in zip or gz format.
when i run the application, i get an lo4j :WARN Element type "rollingpolicy" must be declared
and it does not create a zipped file.
i have created a log4j configuration file in a xml format.
Where do i have to declare this ??
|
 |
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 457
|
|
This request should ideally posted in another forum. I guess, the moderators would move it to an appropriate forum.
But what is your configuration so far.
|
Regards
KumarRaja
|
 |
Muralidharan Raju
Greenhorn
Joined: Feb 24, 2011
Posts: 25
|
|
Kumar Raja wrote:This request should ideally posted in another forum. I guess, the moderators would move it to an appropriate forum.
But what is your configuration so far.
my apologies for not posting in appropriate forum, Since i my code is servlet based i posted in servlet subform.
here is the configuration file i am testing.
i get a warning saying rollingpolicy must be declared and the old log does not get zipped .
i have searched through google and have not found any solution yet. although i did find an example mentioning that it should declared in the POM.xml file for Maven projects,
my project does not contain this POM.xml file. how do i solve this?? Please help
|
 |
Muralidharan Raju
Greenhorn
Joined: Feb 24, 2011
Posts: 25
|
|
is there no solution for this??
Please suggest me folks..
|
 |
Saifuddin Merchant
Ranch Hand
Joined: Feb 08, 2009
Posts: 576
|
|
|
(I think) The correct property name is rollingPolicy and not rollingpolicy (Capital 'P' for policy)
|
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
|
 |
Muralidharan Raju
Greenhorn
Joined: Feb 24, 2011
Posts: 25
|
|
Sam Mercs wrote:(I think) The correct property name is rollingPolicy and not rollingpolicy (Capital 'P' for policy)
NO .. still not happening . i get the same warning. log file is not getting archived into zip.
|
 |
James Boswell
Ranch Hand
Joined: Nov 09, 2011
Posts: 657
|
|
Hi
Although I'm not an expert in Log4j, I would guess that since this is only a warning (log level WARN), it is not the reason your log file is not being archived.
|
 |
Muralidharan Raju
Greenhorn
Joined: Feb 24, 2011
Posts: 25
|
|
There is no solution for this?? or how should i do it otherwise.. Please advice folks..
This is reining my new year..
|
 |
 |
|
|
subject: Log4j rolling policy must be declared?
|
|
|