Fandom

WoWWiki

API LoggingChat

104,672pages on
this wiki
Add New Page
Talk0 Share
WoW API < LoggingChat


Toggles the chat logging and returns the current state.

isLogging = LoggingChat([newState])


Parameters Edit

Arguments Edit

newState 
Boolean - toggles chat logging

Returns Edit

isLogging 
Boolean - current state of logging


Example Edit

if (LoggingChat()) then
  DEFAULT_CHAT_FRAME:AddMessage("Chat is already being logged");
else
  DEFAULT_CHAT_FRAME:AddMessage("Chat is not being logged - starting it!");  
  LoggingChat(1);
  DEFAULT_CHAT_FRAME:AddMessage("Chat is now being logged to Logs\\WOWChatLog.txt");
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki