Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j rolling policy must be declared?

 
Muralidharan Raju
Greenhorn
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Muralidharan Raju
Greenhorn
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there no solution for this??
Please suggest me folks..
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(I think) The correct property name is rollingPolicy and not rollingpolicy (Capital 'P' for policy)
 
Muralidharan Raju
Greenhorn
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no solution for this?? or how should i do it otherwise.. Please advice folks..
This is reining my new year..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic