I'm trying out Red5 for flv stream delivery, and so far, it's working 
really well for me.  I had a question about logging configuration.  I 
would like to add the client IP address to the logs.  I am calling the 
rtmp link through an swf hosted on another webserver.  The flv is served 
out of a copy of the oflaDemo that comes with the red5 distribution.  
Here is my log4j.properties:

log4j.rootLogger=INFO, FLOG
log4j.appender.FLOG=org.apache.log4j.RollingFileAppender
log4j.appender.FLOG.File=/var/log/red5.log
log4j.appender.FLOG.Threshold=DEBUG
log4j.appender.FLOG.MaxFileSize=1MB
log4j.appender.FLOG.MaxBackupIndex=100
log4j.appender.FLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.FLOG.layout.ConversionPattern=%d{MM-dd HH:mm:ss} [%p] %r 
%t:( %c{1}.%M ) %m %n

log4j.logger.org.red5.server.net.rtmp=INFO
log4j.logger.org.red5.server.net.rtmp.RTMPConnection=WARN

Is there simply an addition I can make to the conversion pattern to add 
the IP address to the logging? 

Thanks,
Alex Thurlow

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to