WoW:API LoggingChat: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upsated to new template)
No edit summary
Line 3: Line 3:


<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Toggles the chat logging and returns teh current state.
Toggles the chat logging and returns the current state.


<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->

Revision as of 23:44, 9 August 2006

WoW API < LoggingChat


Toggles the chat logging and returns the current state.

isLogging = LoggingChat([newState])


Parameters

Arguments

:([newState])
:;newState : Boolean - toggles chat logging

Returns

:;isLogging : Boolean - current state of logging


Example

if (LoggingChat()) then
  DEFAULT_CHAT_FRAME:AddMessage("chatlog IS running",1,0,0);
else
  DEFAULT_CHAT_FRAME:AddMessage("chatlog IS NOT running... starting");  
  LoggingChat(1);
  DEFAULT_CHAT_FRAME:AddMessage("Chat beeing logged to logs\\WOWChatLog.txt");  
end