|
hi there, im slowly getting the hang of this painful
package however i cant seem to get stream information on an application
only logged to that application it seems it mixes up all applications
into the main root logger which is a mess. Ive managed to record
different logs i have setup for an application to different file
appenders, so one logs and debugs information on the application, the
other one is a statistical log when the subscriber closes the
connection. The main problems i am facing is i cant see to get the main red5 FLOG file appender logging even though none of the applications have a root logger set, so what happens if any one of them have a root logger set it will force an override and everything will go through that appender which is silly. Basically id like to log in a red5.log all red5 server specific debug information, then an error log setup for errors and warings and exceptions, then in each application all streaming information related to that application can be filtered and logged for ewach application instead of being mixed and jumbled up into the root logger which is a nightmare and a bad design. Here is the xml file i manage to cook up to get a dedicated logging system setup for each app <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration> <appender name="VOD" class="org.red5.server.logs.RollingFileAppender"> <param name="File" value="/www/red5/webapps/VOD/logs/stats.log"/> <param name="DatePattern" value="'.'yyyy-MM-dd"/> <param name="Threshold" value="INFO"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%m %n"/> </layout> </appender> <appender name="APP" class="org.apache.log4j.DailyRollingFileAppender"> <param name="File" value="/www/red5/webapps/VOD/logs/VODAPP.log"/> <param name="DatePattern" value="'.'yyyy-MM-dd"/> <param name="Threshold" value="INFO"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%p] %r %t:( %c{1}.%M ) %m %n"/> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="INFO"/> </filter> </appender> <logger name="org.springframework"> <level value="FATAL"/> </logger> <logger name="stats.VODApplication"> <level value="INFO"/> <appender-ref ref="VOD"/> </logger> <logger name="app.VODApplication"> <level value="INFO"/> <appender-ref ref="APP"/> </logger> </log4j:configuration> |
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
