• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

log4j combination

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
For my application I am using the DailyRollingFileAppender. Is there a way to add maxFileSize parameter of RollingFileAppender?
Maybe there is a plug-in for this kind of combination?

Thanks

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You would need to write your own subclass. As it is, you can either roll over on reaching the maximum file size, or on reaching a certain point in time (e.g. midnight), but not both. If you want to combine them, you'd also need to come up with a new file naming scheme.
 
Chen Yanush
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks ...
 
Chen Yanush
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I add a new appender to the project ?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mean how to write a new one, or how to contribute one you're written back to the project? If the former, use RollingFileAppender.java or DailyRollingFileAppender.java as an example; maybe you can even extend one of them. If the latter, post a message to the log4j developer mailing list, and they'll let you know how to proceed.
 
reply
    Bookmark Topic Watch Topic
  • New Topic