WoW API: LoggingChat
Jump to navigation
Jump to search
← 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