java - logback \ log4j - a rotating log file -


i'm looking log file, size based, log last 10mb or so, without rolling older data archived files. meaning - after 10mb older data deleted, , new entries added row-for-row.

found policies, none seem keep original file name.

you supposed use following 2 log4j properties:

log4j.appender.loggerid.maxfilesize=10mb   log4j.appender.loggerid.maxbackupindex=1 

when file has reached 10mb log4j rotate id keeping @ 1 file backup.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -