[Red5] Issue with Logging not working in red5-0.8.0
Jack Punt
jpjj05-red5 at yahoo.com
Tue Aug 11 14:54:14 PDT 2009
It appears that the only way to get logging in red5-0.8.0 is to follow the
pattern in oflaDemo:
use Red5LoggingFactory in Java, and ContextLoggingListener in web.xml, and
logback-AppName.xml
I have not been able to get Logging from vanilla slf4j/logback
(which worked in red5-0.7)
Can the red5 team confirm/deny that Red5LoggingFactory is the only way to
get logs?
Paul Johnston-7 wrote:
>
> I'm trying to deploy a simple videoconferencing app, and have built the
> Flex
> MXML to interact with Red5 without a problem.
>
> However, I'm thoroughly confused as to where the log messages go. The
> Application code is:
>
> package com.vidainnovation.ef;
>
> import org.red5.logging.Red5LoggerFactory;
> import org.red5.server.adapter.ApplicationAdapter;
> import org.red5.server.api.IConnection;
> import org.slf4j.Logger;
> import org.slf4j.LoggerFactory;
>
> public class Application extends ApplicationAdapter {
>
> private static final Logger log =
> LoggerFactory.getLogger(Application.class);
>
> public boolean appStart ( )
> {
> log.info( "efdemo.appStart" );
> return true;
> }
>
> public void appStop ( )
> {
> log.info( "efdemo.appStop" );
> }
>
> public boolean appConnect( IConnection conn , Object[] params )
> {
> log.info( "efdemo.appConnect " + conn.getClient().getId() );
> return true;
> }
>
> public void appDisconnect( IConnection conn)
> {
> log.info( "efdemo.appDisconnect " + conn.getClient().getId() );
> super.appDisconnect(conn);
> }
> }
>
> and the web.handler bean is set correctly as the application actually
> works
> (you can video conference and record the stream[s] via the Flash).
>
> But I'm getting zero logging for this webapp anywhere except on startup
> when
> it states:
>
> [INFO] [Launcher:/efdemo]
> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer -
> Loading properties file from ServletContext resource
> [/WEB-INF/red5-web.properties]
> [INFO] [Launcher:/efdemo]
> org.springframework.beans.factory.support.DefaultListableBeanFactory -
> Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory at cfe446:
> defining beans
> [placeholderConfig,web.context,web.scope,streamManager.service,web.handler];
> parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory at 591a4d
>
> But where does the log data go? It's not in red5.log except for this. I'm
> thoroughly confused. I've run this command:
>
> grep -R efdemo /root/to/red5/install
>
> And cannot find anything except the above lines in red5.log and the HTTP
> calls to the server on port 5080.
>
> Not sure what else you'd need to see. The server runs the demos fine and
> the
> application that I've built runs on this, but now I'm trying to do
> something
> a little bit more complicated, I need the logging to show me what's going
> on.
>
> Help! (please)
>
> Paul
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
--
View this message in context: http://www.nabble.com/Issue-with-Logging-not-working-tp24827934p24926451.html
Sent from the Red5 - English mailing list archive at Nabble.com.
More information about the Red5
mailing list