Rewrote the page so it isn't a stub.
mNo edit summary |
(Rewrote the page so it isn't a stub.) |
||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
{{wowapi}} | |||
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. | |||