Page 1 of 1

Clean or Backup log file after services restarted

PostPosted: Sun May 06, 2012 12:41 pm
by Illico
Is it possible to clean, better, create an "_old.log" file when serviio services are restarted ?

Re: Clean or Backup log file after services restarted

PostPosted: Sun May 06, 2012 5:54 pm
by zip
try changing this value in log4j.xml

  Code:
<param name="Append" value="true" />


to

  Code:
<param name="Append" value="false" />

Re: Clean or Backup log file after services restarted

PostPosted: Sun May 06, 2012 6:18 pm
by Illico
zip wrote:try changing this value in log4j.xml
  Code:
<param name="Append" value="false" />


Ok, perfect, I suggest to set "false" as default value after installation.

Re: Clean or Backup log file after services restarted

PostPosted: Sun May 06, 2012 6:27 pm
by zip
does it actually work? What happens with the old log?

Re: Clean or Backup log file after services restarted

PostPosted: Mon May 07, 2012 11:45 am
by Illico
zip wrote:does it actually work? What happens with the old log?

Hum... not 100% in fact.
When service restarted, a new clean serviio.log is created but no backup is done :?
So this is not the solution.

Re: Clean or Backup log file after services restarted

PostPosted: Tue May 08, 2012 11:52 pm
by Xmantium
Illico wrote:When service restarted, a new clean serviio.log is created but no backup is done :?

I actually prefer this on my everyday use NAS build! Thanks :)