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 JDBCAppender problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j JDBCAppender problem" Watch "log4j JDBCAppender problem" New topic
Author

log4j JDBCAppender problem

Jiafan Zhou
Ranch Hand

Joined: Sep 28, 2005
Posts: 192

I know that Log4j has a File appender called *RollingFileAppender* which basically have a maximum file size configured in log4j.properties. Each time the file size is reached, then log4j will log all the output to another file.

However, what about the *JDBCAppender*? If the maximum database table size(maybe? this is the part which I don't understand... Can we have such a maximum threshold to control the JDBCAppender?) is reached, how does the JDBCAppender deal with such a case?

Does it simply disallow any events being logged?
Or does it create another table?
Or does it do other fancy jobs(like low/high water mark?)?

Ideally we need this control because we don't want to end up with a super large table, right?

Thanks,
Jiafan


SCJP, SCJD, SCWCD, SCBCD, SCEA
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: log4j JDBCAppender problem
 
Similar Threads
Log Exception Stack Trace with Log4j JDBCAppender
log4j JDBCAppender
JDBCAppender and Webservice Trace
log4j Revoking the JDBCAppender after the Database Connection has been established
LOG4J Help URGENT!!!!!!!