Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j JDBCAppender problem

 
Jiafan Zhou
Ranch Hand
Posts: 193
Fedora Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic