Enables or disables saving combat log data to a file. Combat log data will be saved to the file Logs/WoWCombatLog.txt (path is relative to the folder containing the World of Warcraft client); the file is not actually updated until the player logs out.


See also CombatLog functions, Chat functions.

Signature:

isLogging = LoggingCombat(toggle)

Arguments:

  • toggle - True to enable combat logging; false to disable; omit to just return the current state (boolean)

Returns:

  • isLogging - 1 if combat logging is enabled; otherwise nil (1nil)

Examples:

-- example log file contents
6/7 17:08:46.784  SPELL_CAST_SUCCESS,0x060000000279E425,"Gundark",0x511,0xF13000482C5462D1,"Timber Worg",0x10a48,49576,"Death Grip",0x1
6/7 17:08:47.089  SPELL_AURA_APPLIED,0x060000000279E425,"Gundark",0x511,0xF13000482C5462D1,"Timber Worg",0x10a48,49560,"Death Grip",0x1,DEBUFF
6/7 17:08:47.886  SWING_DAMAGE,0x060000000279E425,"Gundark",0x511,0xF13000482C5462D1,"Timber Worg",0x10a48,374,0,1,0,0,0,nil,nil,nil
6/7 17:08:47.887  SPELL_DAMAGE,0x060000000279E425,"Gundark",0x511,0xF13000482C5462D1,"Timber Worg",0x10a48,50401,"Razor Frost",0x10,5,0,16,0,0,0,nil,nil,nil
6/7 17:08:47.887  SPELL_AURA_APPLIED,0x060000000279E425,"Gundark",0x511,0xF13000482C5462D1,"Timber Worg",0x10a48,51714,"Frost Vulnerability",0x10,DEBUFF
6/7 17:08:48.207  SPELL_CAST_SUCCESS,0x060000000279E425,"Gundark",0x511,0xF13000482C5462D1,"Timber Worg",0x10a48,49896,"Icy Touch",0x10
6/7 17:08:48.327  SWING_MISSED,0xF13000482C5462D1,"Timber Worg",0x10a48,0x060000000279E425,"Gundark",0x511,DODGE
6/7 17:08:48.328  SPELL_PERIODIC_HEAL,0x060000000279E425,"Gundark",0x511,0x060000000279E425,"Gundark",0x511,50475,"Blood Presence",0x1,15,15,nil