Author Topic: managing VC Log  (Read 1771 times)

0 Members and 1 Guest are viewing this topic.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
managing VC Log
« 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>
« Last Edit: October 20, 2014, 04:21:02 PM by nime5ter »
When Voice command gets tough, use hand gestures

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: managing VC Log
« Reply #1 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.

keithj69

  • $upporter
  • Sr. Member
  • *****
  • Posts: 113
  • Karma: 7
    • View Profile
Re: managing VC Log
« Reply #2 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.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: managing VC Log
« Reply #3 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
« Last Edit: October 20, 2014, 02:30:28 PM by Haddood »
When Voice command gets tough, use hand gestures