Page 1 of 1

Fu*king LOGS...

Posted: Mon Dec 01, 2014 1:46 am
by Berkas
Hello L2JServer community.
Please, help to me...
How remove all fucking .log and leave only java, gmaudit & error .log?
Because it will create all .log item, accounting and it creating not 1 file but about 20 with same name, but different number, example: accounting01.log

Here is my log.cfg - http://pastebin.com/kCFY7cEN (as you can see i make true only java, gmaudit & error .log)

Thanks for any help...

P.S. Maybe remove all unused log .java files example: ItemLogFormatter.java & remove everything with ItemLog in log.cfg?

Re: Fu*king LOGS...

Posted: Mon Dec 01, 2014 2:15 am
by UnAfraid
log/error%g.log
remove "%g"
same for other like java%g.java

Re: Fu*king LOGS...

Posted: Mon Dec 01, 2014 2:20 am
by Berkas
UnAfraid wrote:log/error%g.log
remove "%g"
same for other like java%g.java

Code: Select all

# default file output is in user's home directory.java.util.logging.FileHandler.pattern = log/java.logjava.util.logging.FileHandler.count = 0java.util.logging.FileHandler.limit = 0java.util.logging.FileHandler.formatter = com.l2jserver.log.formatter.FileLogFormatterjava.util.logging.FileHandler.level = CONFIGĀ # log errors (exceptions)com.l2jserver.log.handler.ErrorLogHandler.pattern = log/error.logcom.l2jserver.log.handler.ErrorLogHandler.count = 0com.l2jserver.log.handler.ErrorLogHandler.limit = 0com.l2jserver.log.handler.ErrorLogHandler.formatter = java.util.logging.SimpleFormattercom.l2jserver.log.handler.ErrorLogHandler.filter = com.l2jserver.log.filter.ErrorFiltercom.l2jserver.log.handler.ErrorLogHandler.level = CONFIG
Result: java.log.1, java.log.2 and same with errors and every new launch new .log :)

I want this:
1 java.log everytime i will launch gameserver it will make new java.log if exists rewrites like stdout.log
1 error.log if error occurs it will make new one, if not it will rewrite.