WoW API: LoggingCombat

From AddOn Studio
Revision as of 12:40, 25 June 2007 by WoWWiki>Ravas (Rewrote the page so it isn't a stub.)
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.