WoW:API LoggingChat: Difference between revisions
Jump to navigation
Jump to search
(bit of formatting and grammar) |
m (Move page script moved page API LoggingChat to API LoggingChat without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 23: | Line 23: | ||
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> | <!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> | ||
if (LoggingChat()) then | if (LoggingChat()) then | ||
DEFAULT_CHAT_FRAME:AddMessage("Chat is already being logged"; | DEFAULT_CHAT_FRAME:AddMessage("Chat is already being logged"); | ||
else | else | ||
DEFAULT_CHAT_FRAME:AddMessage("Chat is not being logged - starting it!"); | DEFAULT_CHAT_FRAME:AddMessage("Chat is not being logged - starting it!"); | ||
Latest revision as of 04:46, 15 August 2023
← WoW API < LoggingChat
Toggles the chat logging and returns the current state.
isLogging = LoggingChat([newState])
Parameters
Arguments
- newState
- Boolean - toggles chat logging
Returns
- isLogging
- Boolean - current state of logging
Example
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