Backend API
These methods are intended for use by LigDebugLog backends, i.e. addons that receive and display as they need the debug log generated by the loggers.
Library API
:IterateLoggers( [ onlyNamed ] )
Returns a triplet usable in a for statement to iterate all registered loggers. If onlyNamed is true, only loggers containing a name attribute are listed.for logger, name in LibStub('LibDebugLog-1.0'):IterateLoggers(true) do DoSomethingUsefulWith(logger, name) end
Callbacks
NewLogger
Fired when a new logger is registered.Arguments
- logger
- table - the registered logger
- name
- string - the name of the logger or nil if none was found
MessageLogged
Fired when a debug log message is sent.Arguments
- logger
- table - the logger that sends the message,
- time
- number - the time the message is sent,
- message
- string - the logged message, already formatted.
DebugLogEnabled
Fired when the debug log of a logger is enabled.Arguments
- logger
- table - the logger,
- enabled
- boolean - always true for this event.
DebugLogDisabled
Fired when the debug log of a logger is disabled.Arguments
- logger
- table - the logger,
- enabled
- boolean - always false for this event.
GlobalDebugEnabled
Fired when the debug logs are globally enabled.Arguments
- enabled
- boolean - always true for this event.
GlobalDebugDisabled
Fired when the debug logs are globally disable.Arguments
- enabled
- boolean - always false for this event.
Comments