Hi Daniela, try replacing this line: log4j.appender.test2=org.apache.log4j.ConsoleAppender
with these: log4j.appender.test2=org.apache.log4j.RollingFileAppender log4j.appender.test2.File=red5.log You can add this properties too: //maximum log file size log4j.appender.test2.MaxFileSize=1000KB //When the file reaches the previous file size, a new log file is created and the 5 previous //log files are saved in this example log4j.appender.test2.MaxBackupIndex=5 2006/12/27, Daniela Remogna <[EMAIL PROTECTED]>: > 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 > _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
