I put it on webapps/test2/WEB-INF/log4j.properties
It seems that the paths(on windows at least)  are relative to wrapper
folder where the proccess is started, so if i put only
log4j.appender.test2.File=red5.log, rer5.log is written under
red5/wrapper folder

But i forgot that this way, all apps logs are written to this file,
not only the app itself so it must be something missing in this
configuration.

2006/12/28, Daniela Remogna <[EMAIL PROTECTED]>:
> Manuel R.G. wrote:
> > Try instead:
> > log4j.appender.test2.File=../webapps/test2/red5.log
>
> but I have to change webapps/test2/WEB-INF/log4j.properties file or 
> conf/log4j.properties file?
>
> Daniela Remogna
>
> > 2006/12/27, Daniela Remogna <[EMAIL PROTECTED]>:
> >> Manuel R.G. wrote:
> >>> 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
> >>
> >> Done! but it doesn't work.
> >> Maybe I have to add something to conf/log4j.properties...
> >> is it correct the code that I wrote on Application.java file?
> >>
> >> this is the content of Application.java:
> >> .....
> >> 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;
> >>         }
> >> }
> >>
> >>
> >> Regards,
> >> 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
>
> _______________________________________________
> 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

Reply via email to