On 8/2/06, Alex Thurlow <[EMAIL PROTECTED]> wrote:
> 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?
>
I don't think there is by default. Take a look at the log4j
documentation to see:
http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
I'm pretty certain you could create an implementation that could do this though.
Also, you may want to ask Red5 specific questions on the Red5 list.
-Chris
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org