WoW API: LoggingCombat
Jump to navigation
Jump to search
← WoW API < LoggingCombat
Toggles logging for the combat log and returns the current state.
isLogging = LoggingCombat([newState])
Parameters
Arguments
- newState
- Boolean - toggles combat logging
Returns
- isLogging
- Boolean - current state of logging
Example
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
Details
- If no parameter is passed in, LoggingCombat turns logging on.