Lore archive · Warcraft Wiki, 2023 dump
API LoggingCombat
Last wiki revision 2022-07-22
Gets or sets whether logging combat to Logs\WoWCombatLog.txt is enabled. isLogging = LoggingCombat([newState])
- newState: - Toggles combat logging
- isLogging:nil - You are not logging
- 1 - You are logging
if (LoggingCombat) then DEFAULT_CHAT_FRAME:AddMessage("Combat is already being logged"; else DEFAULT_CHAT_FRAME:AddMessage("Combat is not being logged - starting it!"); LoggingCombat(1); end
Create a new macro and paste the following (one-line) /script local a=LoggingCombat(LoggingCombat==nil); UIErrorsFrame:AddMessage("CombatLogging is now "..tostring(a and "ON" or "OFF"),1,0,0);
Drag the macro-button to an action bar or key bind it and you have a one-click/keypress toggle.
- If no parameter is passed in, LoggingCombat only returns the current state.
Source
https://warcraft.wiki.gg/wiki/API_LoggingCombat · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.