[Red5] setup log4j.properties
Daniela Remogna
daniela at docebo.com
Thu Dec 28 09:01:25 EST 2006
Manuel R.G. wrote:
> 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
In my Linux Debian package installation, I haven't the 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.
:(
I'm searching further documentation about this.
Unfortunately in all red5 examples the file located under WEB-INF/log4j.properties is always blank.
I'm sure that a simple solution exists! :D
Regards,
Daniela Remogna
> 2006/12/28, Daniela Remogna <daniela at docebo.com>:
>> 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 <daniela at docebo.com>:
>>>> 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
>>>> 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
>>
>> _______________________________________________
>> 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
More information about the Red5
mailing list