[Red5] Re d5 log file - changing path/restricting size

Walter Tak walter at waltertak.com
Thu Feb 26 05:18:24 PST 2009


Use RollingFileAppender in the ./conf/logback.xml file

Example:
a..         <!--Daily rolling file appender -->a.. 	<appender name="FILE" 
class="ch.qos.logback.core.rolling.RollingFileAppender">a.. 
<File>logFile.log</File>a.. 		<rollingPolicy 
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">a.. 
<FileNamePattern>logFile.%d{yyyy-MM-dd}.log</FileNamePattern>a.. 
</rollingPolicy>a..  a.. 		<layout 
class="ch.qos.logback.classic.PatternLayout">a.. 			<Pattern>%-4relative 
[%thread] %-5level %logger{35} - %msg%n</Pattern>a.. 		</layout>a.. 
</appender>a.. This addition will create a new logfile each day at 00:00 and 
will rename the old one to the specified pattern, it's fully 
userconfigurable.

----- Original Message ----- 
From: "AJ_1" <arj at studento.com>
To: <Red5 at osflash.org>
Sent: Thursday, 26 February 2009 13:09
Subject: [Red5] Re d5 log file - changing path/restricting size


>
> Hi there
>
> Basically, the Red5 log file is growing so large (sometimes up to 5GB) so
> quickly, I need to limit it, somehow!
>
> The file is located here: C:\Program Files\Red5\log\red5.log
>
> Where/how do I change it so I can set a different folder/path for the log 
> to
> be saved to, and also how can I limit it's maximum filesize?
>
> Thanks!
> -- 
> View this message in context: 
> http://www.nabble.com/Red5-log-file---changing-path-restricting-size-tp22222765p22222765.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.557 / Virus Database: 270.11.3/1973 - Release Date: 26-02-09 
> 07:03
> 




More information about the Red5 mailing list