File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes log4j combination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j combination " Watch "log4j combination " New topic
Author

log4j combination

Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
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

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
Thanks ...
Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
How can I add a new appender to the project ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j combination
 
Similar Threads
not tetris
Testing Workflow Products
how ebxml , soap & uddi combination is going to work ?
Java Random
WA #1.....word association