• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Log4j rolling policy must be declared?

 
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 ??
 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • 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..
 
Ranch Hand
Posts: 607
Firefox Browser Spring Java
  • 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.
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • 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
Boost this thread!