View Single Post
04/23/14, 04:34 PM   #12
thelegendaryof
 
thelegendaryof's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 161
How about extending d() with an additional buffer parameter?

Lua Code:
  1. d(msg, buffer)

@buffer:string would be optional and default to DEBUG.
However then when suppressing it will only suppress messages of the buffer-type DEBUG (default).

So if you add an own Buffer for you Addon:

Lua Code:
  1. LibDebug:AddBuffer("MY_ADDON_OUTPUT")

and then track with

Lua Code:
  1. d("Loot dropped: [xyz]", "MY_ADDON_OUTPUT")

it will still get displayed as it isn't considered an Debug-Message (and also won't get logged in the Debug-Log!).

And even in the case LibDebug wouldn't be present the second parameter of d() would just do nothing as in only getting ignored.

Last edited by thelegendaryof : 04/23/14 at 04:39 PM.
  Reply With Quote