Difference between revisions of "MQ2Log" - MMOBugs Wiki

(→‎Features: Corrected log file name, and added info for /tslog.)
(update to indicate default for logging is off, and not saved between sessions.)
 
(18 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
| name = MQ2Log
 
| name = MQ2Log
 
| author = [[user:htw|htw]]
 
| author = [[user:htw|htw]]
| link = [http://www.mmobugs.com/wiki/index.php/MQ2Log Wiki Link]
+
| link = [https://www.mmobugs.com/wiki/index.php?title=MQ2Log Wiki Link]
| commands=None
+
| commands=/logts /logmq /logeq /mmolog /mqlogclean /mqlogcustom
| source = Yes
+
| usesini = Yes
| usesini = No
 
 
}}
 
}}
 
==Description==
 
==Description==
Logs MQ2 chat window to file.
+
Logs MQ2 and/or EQ chat window text to file, and adds a command to output custom log text.
  
 
==Features==
 
==Features==
* Logs messages displayed in the MQ2ChatWnd to YourMQ2Dir/Logs/MQ2ChatWnd_servername_charname.log
+
* Logs MQ2 messages that would be displayed in the chat window (MQ2Chat or MQ2ChatWnd) to YourMQ2Dir\Logs\MQ2ChatWnd_servername_charname.log
 +
* Logs EQ messages that would be displayed in the EQ chat window to YourMQ2Dir\Logs\EQ_servername_charname.log
  
 
==Commands==
 
==Commands==
  
/tslog [off|on] - Toggles (or forces on/off) whether the current date/time stamp is pre-pended to each line logged.  The current setting is global, and saved in MQ2Log.ini under [Settings], entry:  TimeStamp=1 or TimeStamp=0
+
<font class="highlight2">/logts [off|on]</font> - Toggles (or forces on/off) whether the current date/time stamp is pre-pended to each line logged.  The current setting is global, and saved in MQ2Log.ini under [Settings], entry:  TimeStamp=1 or TimeStamp=0.    This setting affects the primary MQ2 command [http://www.macroquest2.com/wiki/index.php/Mqlog /mqlog] in the same manner, for timestamps.
 +
 
 +
<font class="highlight2">/mmolog</font> - Our logging - same as from MQ2Main MacroLog(), but with filename control, Usage: /mmolog filename::text
 +
 
 +
<font class="highlight2">/mqlogclean</font> - Outputs macro log without timestamp
 +
 
 +
<font class="highlight2">/mqlogcustom</font> - Only logs custom args from a macro
 +
 
 +
<font class="highlight2">/logmq [off|on]</font> - Toggles (or forces on/off) whether logging is active for the MQ2 chat window.  This setting is not retained, and defaults to off.  If you want it on by default, add a command to turn it on in autoexec.cfg or other desired config file.
 +
 
 +
<font class="highlight2">/logeq [off|on]</font> - Toggles (or forces on/off) whether logging is active for the EQ chat window.  This setting is not retained, and defaults to off.  If you want it on by default, add a command to turn it on in autoexec.cfg or other desired config file.
 +
 
 +
==Other==
 +
 
 +
<font class="highlight2">/mqtimestamps</font> - This is an undocumented command in MQ2Main that will toggle timestamps for MQ2 logs.
 +
 
  
 
==Availability==
 
==Availability==

Latest revision as of 21:05, 6 March 2021

Plugin Info
Name MQ2Log
Author htw
Link Wiki Link
Commands /logts /logmq /logeq /mmolog /mqlogclean /mqlogcustom
Uses INI File Yes

Description

Logs MQ2 and/or EQ chat window text to file, and adds a command to output custom log text.

Features

  • Logs MQ2 messages that would be displayed in the chat window (MQ2Chat or MQ2ChatWnd) to YourMQ2Dir\Logs\MQ2ChatWnd_servername_charname.log
  • Logs EQ messages that would be displayed in the EQ chat window to YourMQ2Dir\Logs\EQ_servername_charname.log

Commands

/logts [off|on] - Toggles (or forces on/off) whether the current date/time stamp is pre-pended to each line logged. The current setting is global, and saved in MQ2Log.ini under [Settings], entry: TimeStamp=1 or TimeStamp=0. This setting affects the primary MQ2 command /mqlog in the same manner, for timestamps.

/mmolog - Our logging - same as from MQ2Main MacroLog(), but with filename control, Usage: /mmolog filename::text

/mqlogclean - Outputs macro log without timestamp

/mqlogcustom - Only logs custom args from a macro

/logmq [off|on] - Toggles (or forces on/off) whether logging is active for the MQ2 chat window. This setting is not retained, and defaults to off. If you want it on by default, add a command to turn it on in autoexec.cfg or other desired config file.

/logeq [off|on] - Toggles (or forces on/off) whether logging is active for the EQ chat window. This setting is not retained, and defaults to off. If you want it on by default, add a command to turn it on in autoexec.cfg or other desired config file.

Other

/mqtimestamps - This is an undocumented command in MQ2Main that will toggle timestamps for MQ2 logs.


Availability

This plugin is included with the MMOBugs Compile.