Menu

#72 @LogStatus or /logstatus & minor /logopen improvement

Version_4.2.1
closed
ghoti
Commands (26)
5
2012-09-27
2009-08-14
Anonymous
No

I think there was a command in one of the old mm's (maybe console) to get the logstatus (think it was /logstatus). It would be useful to have a command that would return the logfilepath\filename if MM was currently logging, or a 0 if not. If that would be too troublesome, a command would be nice so you could at least see if you're already logging before using /logopen (which I believe will automatically close your current log without telling you before it begins logging to the new destination). Perhaps /logopen could also check for current log status and tell you when it changes destinations.

Thanks!

  • Xengir

Discussion

  • ghoti

    ghoti - 2009-08-16

    I wonder if this isn't already there somewhere. The state of logging shows in the GUI - in the Session menu there is a checkmark beside the log session option. This means mm must have the log state accessable. I'll see if there already is a commandline way to see it.

     
  • ghoti

    ghoti - 2009-08-16

    I've exposed a new system variable $CurrentLogFile which is empty when not logging and set to the file name when logging. So @isempty($CurrentLogFile) = 1 when not logging but 0 while logging. Also @len($CurrentLogFile) = 0 when not logging. The system variable would allow you to check the file name and do things like close a log and open another incrementing a umber in the file name so equivalent. This will appear when the next build of 4.2.1 is released.

     

Anonymous
Anonymous

Add attachments
Cancel