VoxCommando

VoxNastics (User Guides and Mods) => XML Exchange => Topic started by: Haddood on October 20, 2014, 04:08:26 AM

Title: managing VC Log
Post by: Haddood on October 20, 2014, 04:08:26 AM
VC log can grow pretty heavy over time ... this command will copy it to log folder and add the date to the name. keeping the main log smaller.

I use it with a daily timer to do this at 11:59 pm daily

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.5-->
<command id="384" name="Archive Log" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>File.Move</cmdType>
    <params>
      <param>{Path.VC}\voxLog.txt</param>
      <param>{Path.VC}\logs\{DtCustom.yyyy}'{DtCustom.MM}'{DtCustom.dd} voxLog.txt</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.SetEventTimer</cmdType>
    <params>
      <param>11:59 PM</param>
      <param>VC.Log.Archive</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>VC.Log.Archive</event>
  <event>VC.Loaded</event>
</command>
Title: Re: managing VC Log
Post by: jitterjames on October 20, 2014, 10:18:40 AM
Thanks Haddood, very handy.

For what it's worth, under normal operating circumstances, when everything is working normally, I turn my logging off.
Title: Re: managing VC Log
Post by: keithj69 on October 20, 2014, 12:27:24 PM
This is awesome. Thanks.  Just to point out, the log folder is not there be default, so it needs to be created.
Title: Re: managing VC Log
Post by: Haddood on October 20, 2014, 02:19:18 PM
This is awesome. Thanks.  Just to point out, the log folder is not there be default, so it needs to be created.

Thanks for catching that, thought VC will create it ::bonk

James ... I am logging few stuff, apart from normal log, recognised command, not recognised ...etc. with confidence levels, who issued the command ... Hopefully one day to build some statistics to see what works good, what is so so. I think this Info will come in handy one day, in open-air mic setup