tiger154 / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
1 stars 0 forks source link

Request to configure maximum log file size and use log4j.xml syntax #114

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Inventing a new own XML syntax for configuring log4j logging may be a bad idea. 
For example, I want to use rolling file appender. But by the nature of my 
project machine where server will be installed can have little free disk space 
but - ups! - I can't set maximum log file size with this new syntax. So log can 
cause disk overflow. What can I do? Just add this feature by myself to my own 
copy of jWebSocket codebase? And why didn't you just use existing log4j.xml 
syntax?
I read that default log size for rolling appender is 10 Mb and it is rather 
unlikely it can overflow a disk. But anyway managing maxumum log size is 
important feature

Original issue reported on code.google.com by fivefeetfurther@gmail.com on 22 Dec 2010 at 6:37