Michael Klishin wrote:
> Daniela,
>
> Check out in-depth Log4j manual. It's a quite big document but don't
> worry, you actually need just to turn it on and add logging for your
> specific classes.
>
> http://logging.apache.org/log4j/docs/manual.html
Thanks Michael but I'm not be able to switch on logging for a specific
application.
This is what I've done:
1) I've created the "test2" application.
2) I've modified webapps/test2/WEB-INF/log4j.properties
#logging config, this should be auto reloaded by spring
log4j.rootCategory=DEBUG, test2
log4j.appender.test2=org.apache.log4j.ConsoleAppender;
log4j.appender.test2.layout=org.apache.log4j.PatternLayout
log4j.appender.test2.layout.ConversionPattern=%-4r [%t] %-5p %c %x -%m%n
3) I've modified the file Application.java by adding these lines:
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
.....
public class Application extends ApplicationAdapter{
private static final Log log = LogFactory.getLog(Application.class);
....
public boolean connect(IConnection conn, IScope room, Object[] params){
log.info("Test2 Application Started");
....
return true;
}
}
4) I've recompiled the file Application.java
5) I've restarted red5
6) I've connected to test2 application
but I didn't found the phrase "Test2 Application Started" under red5.log file.
why? what's wrong?
thanks.
Daniela Remogna
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org