WoW API: LoggingChat

From AddOn Studio
Revision as of 10:16, 28 July 2006 by WoWWiki>Blitsa (upsated to new template)
Jump to navigation Jump to search

WoW API < LoggingChat


Toggles the chat logging and returns teh 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