Here you go

http://www.electroteque.org/red5/logging/

untar org.tar.gz into your webapp src, its the org.red5 namespace i know 
thats bad it should change i might change it back to org.electroteque.

the log4.xml example shows how to setup a log adaptor, ive been trying 
to model setting up logging for publishing points in windows media which 
are rooms in flash. It could just be named the scope name instead.

The appender in the example requires log4j alpha because I needed the 
new rolling log functionality to name the files like in the example. 
Adding the new log4j alpha jar into the lib path if using eclipse 
requires placing it at the top of the build order because its clashing 
with an old log4j namespace contained in jetty or mina I'm not really 
sure but thats bad !

Im really unsure performance wise how it runs with alot of log adaptors 
loaded on startup ??

the red-web.xml shows setting up the statistics logging bean.

The logging bean wont work unless you extend your app adaptor with 
LogApplicationAdapter which extends the ApplicationAdaptor to trigger 
the logging bean and its method on a stream close event.

The actual work for adding the data to the log is in the VODStatistics 
class, I have not looked at it for a while because there are still many 
things broken with the statistics API and im not getting all the 
required data still.

It required a complete custom log4j logger factory, layout. The logger 
automatically appends into the fields the event type and category to 
model FMS fields. A custom field layout can be placed into the log4j 
config however there is some issues setting the column seperator \t 
character it adds a literal \t instead of a tab. If adding more than 
just stop events, having the event name and category makes it much 
easier to use something like LogParser to filter the logs.

We needed to model this so we can calculate bandwidth usage for a third 
party feed system which is what we have setup in windows media which has 
the W3C logging standard. I havent completed this project yet though.

I'm not a 100% java developer so there is tonnes of room for improvement.

Let me know how you go.

Rebus wrote:
> Thanks Dan,
>
> That would be very nice.
>
> /Rebus
>
> -----Original Message-----
> From: Dan Rossi [mailto:[EMAIL PROTECTED] 
> Sent: 15 June 2007 00:14
> To: [EMAIL PROTECTED]
> Subject: Re: Red5 W3C logging
>
> Hi there ill zip you the code in a bit.
>
> Rebus wrote:
>   
>> Hi Dan,
>>
>> I've been reading around on the Red5 mailing list and found your 
>> messages about the w3c logging very interesting. I am also very 
>> interested in getting the logging work, and I'm wondering if you are 
>> planning to share what you have done on the logging? Maybe I can help 
>> on it?
>>
>> Regards,
>>
>> Rebus
>>
>>     
>
>
>   


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

Reply via email to