LoggingChat

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.7.0 / 1.13.2

Gets or sets whether logging chat to Logs\WoWChatLog.txt is enabled.

isLogging = LoggingChat([newState])

Parameters

Arguments

newState
boolean - toggles chat logging

Returns

isLogging
boolean - current state of logging

Example

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