Hi,
> On 13/07/2006, at 7:33 PM, m.j.milicevic wrote:
>
>>
>> try something like this:
>>
>> log4j.rootLogger=DEBUG, FLOG
>> log4j.appender.FLOG=org.apache.log4j.DailyRollingFileAppender
>> log4j.appender.FLOG.File=Demo.log
>> log4j.appender.FLOG.DatePattern='.'yyyy-MM-dd-HH-mm
>> log4j.appender.FLOG.Threshold=DEBUG
>> log4j.appender.FLOG.layout=org.apache.log4j.PatternLayout
>> log4j.appender.FLOG.layout.ConversionPattern=[%p] %r %t:( %c{1}.%M )
>> %m %n
>>
> Ive tried that the file is nowhere to be seen :) What exactly is the
> FLOG appender type anyway
You came with the example:
log4j.appender.FLOG=org.apache.log4j.DailyRollingFileAppender
FLOG is DailyRollingFileAppender, as you have defined above..
change it in whatever name you want..DRFLOG would be more appropriate..;-)
>? if i try to give the log file a path like
> log4j.appender.FLOG.File=logs/Demo.log I get this
>
> java.io.FileNotFoundException: logs\Demo.log (The system cannot find
> the path specified)
well, create logs directory and file will be there (relative from where you are
running your application from,
so if you are running it from foo\bin directory, create logs folder in there,
foo\bin\logs)
>
> Im currently testing suburls atm like /theapp/theaccesspoint , the
> directory gets created dynamically which is pretty neat where the
> stream got recorded too and hopefully am able to create a seperate log
> file for this aswell.
>
> So ive put the logs dir within the root of the webapp dir and also
> within WEB-INF and no luck there :)
just create empty dir, and deploy it, or leave logs in the root of your app,
without prepending any directories..
e.g.
log4j.appender.FLOG.File=somename.txt
hth,
-m
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org