• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Log4j rolling policy must be declared?

 
Greenhorn
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there no solution for this??
Please suggest me folks..
 
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic