WoW:API LoggingChat

From AddOn Studio
Revision as of 22:31, 31 January 2006 by WoWWiki>Agge
Jump to navigation Jump to search

Template:WoW API

isLogging = LoggingChat([newState])

(Returns new state (or current state if no argument))

returns NIL if logging currently is disabled, and 1 (one) if logging is enabled

added in patch 1.7.0

Codesnippet:

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  


--Agge 11:11, 31 Jan 2006 (EST)