Go to Page... |
Compatibility: | Necrom (9.0.0) Scribes of Fate (8.3.5) |
Updated: | 07/30/23 03:53 PM |
Created: | 02/26/19 10:22 AM |
Monthly downloads: | 18,010 |
Total downloads: | 2,890,271 |
Favorites: | 1,458 |
MD5: |
## DependsOn: LibDebugLogger>=180
local logger = LibDebugLogger("MyAddon") logger:Debug("A debug message") logger:Info("An", "info", "message") -- multiple arguments are passed through tostring and concatenated with a space in between logger:Warn("A %s message: %d", "formatted", 123) -- if the first parameter contains formatting strings, the logger will pass all arguments through string.format instead local subLogger = logger:Create("verbose") -- this will create a separate logger with a combined tag "MyAddon/verbose". subLogger:SetEnabled(false) -- turn the new logger off subLogger:Error("An error message") -- this won't show up
local logger = LibDebugLogger.Create("MyAddon")
local logger = LibDebugLogger:Create("MyAddon")
local logger = LibDebugLogger("MyAddon")
local subLogger = logger:Create("SomeFile")
logger:SetEnabled(false)
logger:SetMinLevelOverride(LibDebugLogger.LOG_LEVEL_DEBUG)
logger:SetLogTracesOverride(true)
logger:Log(LibDebugLogger.LOG_LEVEL_DEBUG, "My formatted message: %s", "some text") logger:Log(LibDebugLogger.LOG_LEVEL_DEBUG, "My", "combined", "message")
local sessionStartTime = LibDebugLogger.SESSION_START_TIME
local uiLoadStartTime = LibDebugLogger.UI_LOAD_START_TIME
local isTraceLoggingEnabled = LibDebugLogger:IsTraceLoggingEnabled()
LibDebugLogger:SetTraceLoggingEnabled(enabled)
local minLogLevel = LibDebugLogger:GetMinLogLevel()
LibDebugLogger:SetMinLogLevel(level)
LibDebugLogger:GetLog()
LibDebugLogger:ToggleFormattingErrors()
LibDebugLogger:ClearLog()
LibDebugLogger:SetBlockChatOutputEnabled(enabled)
local isBlocked = LibDebugLogger:IsBlockChatOutputEnabled()
input = LibDebugLogger.CombineSplitStringIfNeeded(input)
LibDebugLogger:RegisterCallback(callbackName, callback)
LibDebugLogger:RegisterCallback(LibDebugLogger.callback.LOG_CLEARED, function(log) -- do something end)
LibDebugLogger:RegisterCallback(LibDebugLogger.callback.LOG_PRUNED, function(startIndex) -- do something end)
LibDebugLogger:RegisterCallback(LibDebugLogger.callback.LOG_CLEARED, function(entry, wasDuplicate) -- do something end)
File Name |
Version |
Size |
Uploader |
Date |
2.5.0 |
15kB |
sirinsidiator |
04/17/23 04:51 PM |
|
2.4.1 |
15kB |
sirinsidiator |
06/15/22 02:28 PM |
|
2.4.0 |
15kB |
sirinsidiator |
06/10/22 01:01 PM |
|
2.3.0 |
14kB |
sirinsidiator |
11/01/21 10:09 AM |
|
2.2.0 |
14kB |
sirinsidiator |
06/01/21 11:38 AM |
|
2.1.2 |
13kB |
sirinsidiator |
11/12/20 12:32 PM |
|
2.1.1 |
13kB |
sirinsidiator |
11/12/20 10:37 AM |
|
2.1.0 |
13kB |
sirinsidiator |
04/21/20 02:45 PM |
|
2.0.0 |
12kB |
sirinsidiator |
04/10/20 11:24 AM |
|
1.1.1 |
7kB |
sirinsidiator |
03/02/20 12:10 PM |
|
1.1.0 |
7kB |
sirinsidiator |
06/01/19 08:23 AM |
|
1.0.2 |
5kB |
sirinsidiator |
03/16/19 04:39 AM |
|
1.0.1 |
4kB |
sirinsidiator |
03/04/19 12:10 PM |
|
1.0.0 |
4kB |
sirinsidiator |
02/26/19 10:22 AM |
![]() |
Comment Options |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
|||
|
Re: Re: Still erroring...
Something funny. I replaced Code:
[GAMEPAD_TYPE_HERON] = "stadia gamepad", Code:
[GAMEPAD_TYPE_STADIA] = "stadia gamepad", Regards |
||
![]() |
![]() |
hatsune681 |
View Public Profile |
Send a private message to hatsune681 |
Send email to hatsune681 |
Find More Posts by hatsune681 |
Add hatsune681 to Your Buddy List |
![]() |
||
Re: Still erroring...
You are still running the old version of the lib.
|
||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
||
Forum posts: 11
File comments: 95
Uploads: 0
|
Still erroring...
So LibDebugLogger gives me an error on PTS when I have it enabled. It happens at character login and not again until you relog or change characters.
Remove the quoted part...
LibDebugLogger UI Error 25CD561D user:/AddOns/LibDebugLogger/Initialization.lua:46: table index is nil stack traceback: user:/AddOns/LibDebugLogger/Initialization.lua:46: in function '(main chunk)'
Last edited by Marcus : 04/18/23 at 08:07 PM.
|
|
![]() |
![]() |
Marcus |
View Public Profile |
Send a private message to Marcus |
Send email to Marcus |
Find More Posts by Marcus |
Add Marcus to Your Buddy List |
![]() |
|
THank you!! i was on PTS and kept having error from Libdebug itself
![]() |
|
![]() |
![]() |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
![]() |
|
|
Hey!
I would like to request and option to let the window auto open after reloadui, to be able to search the log text and to have a button to run the reloadui command on the log window =D You did a great work with this addon! Thanks!
Last edited by Fenweldryn : 02/28/21 at 09:51 AM.
|
![]() |
![]() |
Fenweldryn |
View Public Profile |
Send a private message to Fenweldryn |
Send email to Fenweldryn |
Find More Posts by Fenweldryn |
Add Fenweldryn to Your Buddy List |
![]() |
||||
![]() |
||||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
|||
|
|||
![]() |
![]() |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
![]() |
||
|
||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
||
Forum posts: 0
File comments: 12
Uploads: 0
|
Looks like there's been a regression of the AddonVersion?
Tested locally and chaning to 211 works nicely. |
|
![]() |
![]() |
esran |
View Public Profile |
Send a private message to esran |
Send email to esran |
Find More Posts by esran |
Add esran to Your Buddy List |
![]() |
|||
Forum posts: 0
File comments: 41
Uploads: 0
|
Like I said, it's wonky. I'm use to WoW's error logging, where the first addon mentioned is the cause and the rest are all collateral damage. Off to EHT! - And thanks for the quick response. |
||
![]() |
![]() |
Illutian |
View Public Profile |
Send a private message to Illutian |
Send email to Illutian |
Find More Posts by Illutian |
Add Illutian to Your Buddy List |
![]() |
||
|
||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 41
Uploads: 0
|
Can't completely tell...because ESO's logging is a bit wonky to me. But it appears this addon still makes call the [now depreciated] LibStub addon.
stack traceback: user:/AddOns/LibDebugLogger/LogHandler.lua:185: in function 'Log' (tail call): ? user:/AddOns/LibStub/LibStub/LibStub.lua:47: in function 'LogDeprecationWarning' user:/AddOns/LibStub/LibStub/LibStub.lua:85: in function 'LibStub:GetLibrary' user:/AddOns/EssentialHousingTools/ui.lua:17930: in function 'EHT.UI.RegisterHousingHubScene' user:/AddOns/EssentialHousingTools/handlers.lua:93: in function 'EHT.Handlers.PlayerActivated' [C]: in function 'pcall' user:/AddOns/EssentialHousingTools/essentialhousingtools.lua:1898: in function 'EHT.SafeCall' user:/AddOns/EssentialHousingTools/handlers.lua:200: in function 'EHT.Handlers.OnPlayerActivated' I'm just looking at the lines with "LibDebugLogger". - Slowly making my rounds to other addons still using LibStub. |
![]() |
![]() |
Illutian |
View Public Profile |
Send a private message to Illutian |
Send email to Illutian |
Find More Posts by Illutian |
Add Illutian to Your Buddy List |
![]() |
|
Hi. How do I disable all logging done by this library? Even setting the log level to errors only still produces a large amount of log messages that slow down loading, which really hurts when I'm doing /reloadui during add-on development.
|
|
![]() |
![]() |
Aenathel |
View Public Profile |
Send a private message to Aenathel |
Send email to Aenathel |
Find More Posts by Aenathel |
Add Aenathel to Your Buddy List |
![]() |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.