[Red5] red5.log rotation
Andy Shaules
bowljoman at hotmail.com
Mon Oct 12 14:15:23 PDT 2009
How about a custom build script with such a target. It does a shut down,
move old log, and restart
<target name="restart" description="rename logfile and start the server">
<java classname="org.red5.server.Shutdown" fork="true">
<classpath>
<pathelement location="conf"/>
<pathelement location="boot.jar"/>
</classpath>
<jvmarg value="-Dpython.home=lib"/>
<arg value="9999"/>
<arg value="red5user"/>
<arg value="changeme"/>
</java>
<move file="log/red5.log" tofile="log/newName.log"/>
<java classname="org.red5.server.Bootstrap" fork="true">
<classpath>
<pathelement location="conf"/>
<pathelement location="boot.jar"/>
</classpath>
<jvmarg value="-Dpython.home=lib"/>
</java>
</target>
----- Original Message -----
From: Tomasz Zieleniewski
To: red5 at osflash.org
Sent: Monday, October 12, 2009 2:13 PM
Subject: Re: [Red5] red5.log rotation
Hi Lara,
Here You may find description about usefull logging settings.
http://ictbackyard.com/archives/5
Kind regards,
- Tomasz Zieleniewski
2009/10/12 Lara Giovannozzi <lara.giovannozzi at gmail.com>
Hi,
my application use the private static final Logger log =
LoggerFactory.getLogger(ServerStream.class); to log some info during the
process.
Because the log file is grown up to 4G i want to rotate the log.
but if i use the logrotate red5 stop to write the log on this file.....
There is a solution??
thanks
--
laragio
_______________________________________________
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