[Red5devs] W3C log appender

Daniel Rossi spam at electroteque.org
Fri May 9 04:23:34 PDT 2008


On 09/05/2008, at 8:01 PM, Daniel Rossi wrote:

>
> AccessStatisticsService does the actual logging and sets up the
> pattern layout and appender dynamically for each logger, the AOP stuff
> i had to take out as it kept breaking whenever red5 was updated so is
> called directly on a stream stop event. I can also tell it to either
> buffer the log and the buffer size before logging. Its done
> dynamically because i didnt want hundreds of xml appender config files
> so i could have subscope logs in their own log files and the loggers
> are loaded on startup. It means the logfile is created on the current
> scope name log/stats/scopeNameApp/Red5_yyyyMMdd.log.



Woops the most important part it just uses the standard  
rollingfileappender hence why the logfile names are formatted like  
that Red5_%d{yyyyMMdd}.log, they can also be gzipped when the log is  
rolling over. I also think the log string is finally formatted in the  
Red5PatternLayout which extends PatternLayoutBase not in the appender.  
The required jar for this setup is the logback access package. 



More information about the Red5devs mailing list