[Red5] What's the best way to do logging in Red5 7.0+

Ignacio Lopez ignacio.lopez at gmail.com
Wed Nov 5 06:18:46 PST 2008


Hi, I've had the same problem that Steve and, unfortunately, there seems to
be no way of implementing a custom logging in red5-0.7
I've read and tried everything, even modifying the main logback.xml in
red5/conf but nothing worked. So I've given up and for the moment I am using
a custom logging implementation without using red5 infrastructure...

Sometimes this kind of breaking changes are needed in order to provide a
more flexible and scalable way of doing things in the future...even if
something gets broken in the middle and some people get upset.

The workarounds described only works in red5 0.8 +, and that version is not
stable enough for production so I would recommend to either wait on 0.8 or
give up on logging and implementing something on your own =)

Cheers and happy coding!


On Tue, Nov 4, 2008 at 9:31 PM, Mondain <mondain at gmail.com> wrote:

> We're trying to make the logging a easy as possible, but I suggest that you
> have a look at our demos for further information; once you have the server
> setup of course.
> Paul
>
>
> On Tue, Nov 4, 2008 at 2:46 PM, SteveRicketts <velocedge at hotmail.com>wrote:
>
>>
>> Have 3+ loggings?...   Pretty much.... No!   I'd just like to find out
>> what
>> the recommended approach to logging is and I'll implement it.   Don't
>> really
>> care what it is, just can't figure out what I should be doing.
>>
>> sr
>>
>>
>>
>> Mondain wrote:
>> >
>> > The 0.8.0 RC1 has the same logging infrastructure as trunk (currently),
>> so
>> > I
>> > suggest giving that a whirl. The consolidation was to use slf4j to
>> > replace:
>> > log4j
>> > commons-logging
>> > java.util.logging (juli)
>> >
>> > etc. Do you really want to have 3+ logging implementations running
>> within
>> > the server?
>> >
>> > Paul
>> >
>> > On Tue, Nov 4, 2008 at 1:30 PM, SteveRicketts <velocedge at hotmail.com>
>> > wrote:
>> >
>> >>
>> >> lol... now I feel like a REAL idiot... how do I "try the trunk?"...
>>  ;-)
>> >>
>> >> sr
>> >>
>> >> Thijs Triemstra | Collab wrote:
>> >> >
>> >> > I think that tutorial was written for 0.8 RC1, which is tagged in the
>> >> > repository or try the trunk.
>> >> >
>> >> > Thijs
>> >> >
>> >> > On 4 nov 2008, at 20:53, SteveRicketts wrote:
>> >> >
>> >> >>
>> >> >> Newbie and very confused about logging.
>> >> >>
>> >> >> Was on 6.3 using commons-logging and upgraded to 7.0 and found
>> >> >> logging had
>> >> >> changed.  Read
>> >> http://jira.red5.org/confluence/display/docs/Logging+Setup
>> >> >> ,
>> >> >> got even more confused, nothing worked.
>> >> >>
>> >> >> The article says logging was "simplified and consolidated" and then
>> >> >> lists 5
>> >> >> new jars you have to include, numerous changes to the web.xml,
>> >> >> removal of
>> >> >> the log4j.properties file, the addition of a new logback.xml file, a
>> >> >> bunch
>> >> >> of code to access the logger context, and changes to the log
>> >> >> statements
>> >> >> themselves.... this is simplified?
>> >> >>
>> >> >> Then there's a reference to a workaround... but I don't know what
>> >> >> we're
>> >> >> working around.  In my old code I included the commons-logging jar,
>> >> >> one
>> >> >> statement to access the logger context, and we're off.  Why all the
>> >> >> change,
>> >> >> why so hard to get logging right, and what don't I know that's going
>> >> >> to bite
>> >> >> me in the *** down the road if I don't change the way I do logging?
>> >> >>
>> >> >> So, I guess my questions are:
>> >> >>
>> >> >> 1. Has logging really been simplified?
>> >> >> 2. What does the workaround... work around?
>> >> >> 3. Is there a complete example of how I should be writing to a log
>> >> >> file in
>> >> >> 7.0+
>> >> >>
>> >> >> Thanks,
>> >> >>
>> >> >> Steve
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/What%27s-the-best-way-to-do-logging-in-Red5-7.0%2B-tp20311329p20311329.html
>> >> >> Sent from the Red5 - English mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >> _______________________________________________
>> >> >> Red5 mailing list
>> >> >> Red5 at osflash.org
>> >> >> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Red5 mailing list
>> >> > Red5 at osflash.org
>> >> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/What%27s-the-best-way-to-do-logging-in-Red5-7.0%2B-tp20311329p20331602.html
>> >> Sent from the Red5 - English mailing list archive at Nabble.com.
>> >>
>> >>
>> >> _______________________________________________
>> >> Red5 mailing list
>> >> Red5 at osflash.org
>> >> http://osflash.org/mailman/listinfo/red5_osflash.org
>> >>
>> >
>> >
>> >
>> > --
>> > http://gregoire.org/
>> > http://osflash.org/red5
>> >
>> > _______________________________________________
>> > Red5 mailing list
>> > Red5 at osflash.org
>> > http://osflash.org/mailman/listinfo/red5_osflash.org
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/What%27s-the-best-way-to-do-logging-in-Red5-7.0%2B-tp20311329p20332948.html
>> Sent from the Red5 - English mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>
>
>
> --
> http://gregoire.org/
> http://osflash.org/red5
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20081105/5efb45ce/attachment-0001.html>


More information about the Red5 mailing list