This content has been marked as final.
Show 2 replies
-
1. Re: Extends from PeriodicRotatingFileHandler
suikast42 Mar 21, 2013 12:17 PM (in response to suikast42)Its strange very strange. I don't understand the the lifecycle of the handlers.
If I do this :
@Override
protected void doPublish(ExtLogRecord record){
try {
fileOutputStream = new FileOutputStream(getFile(), true);
setOutputStream(fileOutputStream);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
super.doPublish(record);
}
then the handler writes the entries in the file otherwise its empty .
-
2. Re: Extends from PeriodicRotatingFileHandler
suikast42 Mar 22, 2013 8:08 AM (in response to suikast42)After I switch to 7.2.0.Final I can use log4j appenders as custom-logger. So my problem is solved.