Quantcast
Download
(32 Kb)
Download
Updated: 04/10/20 11:30 AM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.5)
Updated:04/10/20 11:30 AM
Created:05/31/19 03:28 PM
Monthly downloads:234
Total downloads:3,183
Favorites:23
MD5:
Categories:Utility Mods, Data Mods
DebugLogViewer
Version: 1.1.0
by: sirinsidiator [More]
This add-on is a front-end for LibDebugLogger and allows to view and filter the logged messages.
There is now an external Log Viewer too, which can be used to share log files.

Features:
  • Quick Log for non-intrusive display of log messages
  • No more Lua error pop-ups - they will now show in the quick log and play a sound instead
  • No more add-on debug messages in chat - they will be shown in the quick log
  • Log Viewer with filters
  • Detail view for message
  • Add-on Settings (including LibDebugLogger settings)

The log viewer can be bound to a key, opened via the /logviewer slash command, or via the options context menu in the quick log.
Clicking the time stamp or tag on an entry in the quick log, or the a row in the log viewer will open a new window with the full message and stack trace.
Any links in a message can be interacted with normally, both from the log viewer and the quick log.

Dependencies:
Make sure to install the following required libraries in order to use DebugLogViewer.
Reporting a problem:
Before you report something, please make sure you have installed the latest version of all your addons and check the Change Log for known issues.

Please take the time to cover the following points in your report:
1) What were you trying to do?
2) What actually happened?
3) Which steps did you take?
4) Can you reproduce it a second time after logging out and in again (or /reloadui)?

Screenshots and videos are also very useful to figure out what is going wrong. In addition you should also log out (or /reloadui) and upload the LibDebugLogger.lua from your Saved Variables somewhere and include a link to it. It contains a lot of useful information that will make it even easier for me to pinpoint an issue and get it fixed fast.
v1.1.0
- added support for verbose log level
- changed how log messages are sanitized (markup is now printed in plain text instead of rendered)
- fixed an error caused by log messages without a valid tag
- added support for verbose log level
- added some public APIs (see StartUp.lua)
Archived Files (1)
File Name
Version
Size
Uploader
Date
1.0.0
32kB
sirinsidiator
06/01/19 08:46 AM


Post A Reply Comment Options
Unread 06/01/19, 09:19 AM  
Anceane
 
Anceane's Avatar

Forum posts: 268
File comments: 837
Uploads: 0
errors pop

So i checked i have all the libraries asked and i have them all from last version for each
At drop into the game, those two errors :

Code:
user:/AddOns/DebugLogViewer/StartUp.lua:74: function expected instead of nil
stack traceback:
user:/AddOns/DebugLogViewer/StartUp.lua:74: in function '(main chunk)'
|caaaaaa<Locals> ADDON_NAME = "DebugLogViewer", DLV = tbl, LDL = tbl, ZO_ERROR_FRAME = tbl, internal = tbl, class = tbl, gettext = user:/AddOns/LibGetText/LibGetText.lua:18, LEVEL_TO_LOCALIZED_STRING = tbl, LOG_DETAIL_MESSAGE_TEMPLATE = "%s |r%s", LOG_DETAIL_TITLE_TEMPLATE = "%s %s", nextEventHandleIndex = 1, RegisterForEvent = user:/AddOns/DebugLogViewer/StartUp.lua:42, UnregisterForEvent = user:/AddOns/DebugLogViewer/StartUp.lua:51, PrepareOutput = user:/AddOns/DebugLogViewer/StartUp.lua:55, OnAddonLoaded = user:/AddOns/DebugLogViewer/StartUp.lua:64 </Locals>|r
Code:
user:/AddOns/DebugLogViewer/LogViewer.lua:19: function expected instead of nil
stack traceback:
user:/AddOns/DebugLogViewer/LogViewer.lua:19: in function '(main chunk)'
|caaaaaa<Locals> DLV = tbl, LDL = tbl, internal = tbl, gettext = user:/AddOns/LibGetText/LibGetText.lua:18, PrepareOutput = user:/AddOns/DebugLogViewer/StartUp.lua:55, DEFAULT_SETTINGS = tbl, LEVEL_TO_LOCALIZED_STRING = tbl, LOG_VIEWER_TAG_TEMPLATE = "%s/%s", LOG_VIEWER_TAG_WITH_REPS_TEMPLATE = "%s/%s (%dx)", LOG_DATA = 1, LOG_ENTRY_HEIGHT = 30, TIME_FILTER_SESSION = 1, TIME_FILTER_UI_LOAD = 2, TIME_FILTER_ALL = 3 </Locals>|r
Thank you
__________________
Report comment to moderator  
Reply With Quote
Unread 06/01/19, 09:46 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1446
File comments: 991
Uploads: 37
Re: errors pop

Originally Posted by Anceane
So i checked i have all the libraries asked and i have them all from last version for each
At drop into the game, those two errors :

Code:
user:/AddOns/DebugLogViewer/StartUp.lua:74: function expected instead of nil
stack traceback:
user:/AddOns/DebugLogViewer/StartUp.lua:74: in function '(main chunk)'
|caaaaaa<Locals> ADDON_NAME = "DebugLogViewer", DLV = tbl, LDL = tbl, ZO_ERROR_FRAME = tbl, internal = tbl, class = tbl, gettext = user:/AddOns/LibGetText/LibGetText.lua:18, LEVEL_TO_LOCALIZED_STRING = tbl, LOG_DETAIL_MESSAGE_TEMPLATE = "%s |r%s", LOG_DETAIL_TITLE_TEMPLATE = "%s %s", nextEventHandleIndex = 1, RegisterForEvent = user:/AddOns/DebugLogViewer/StartUp.lua:42, UnregisterForEvent = user:/AddOns/DebugLogViewer/StartUp.lua:51, PrepareOutput = user:/AddOns/DebugLogViewer/StartUp.lua:55, OnAddonLoaded = user:/AddOns/DebugLogViewer/StartUp.lua:64 </Locals>|r
Code:
user:/AddOns/DebugLogViewer/LogViewer.lua:19: function expected instead of nil
stack traceback:
user:/AddOns/DebugLogViewer/LogViewer.lua:19: in function '(main chunk)'
|caaaaaa<Locals> DLV = tbl, LDL = tbl, internal = tbl, gettext = user:/AddOns/LibGetText/LibGetText.lua:18, PrepareOutput = user:/AddOns/DebugLogViewer/StartUp.lua:55, DEFAULT_SETTINGS = tbl, LEVEL_TO_LOCALIZED_STRING = tbl, LOG_VIEWER_TAG_TEMPLATE = "%s/%s", LOG_VIEWER_TAG_WITH_REPS_TEMPLATE = "%s/%s (%dx)", LOG_DATA = 1, LOG_ENTRY_HEIGHT = 30, TIME_FILTER_SESSION = 1, TIME_FILTER_UI_LOAD = 2, TIME_FILTER_ALL = 3 </Locals>|r
Thank you
The DebugLogViewer relies on LibDebugLogger v1.1, so you need to make sure to update that library (update was released earlier today).
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 06/01/19, 10:15 AM  
Anceane
 
Anceane's Avatar

Forum posts: 268
File comments: 837
Uploads: 0
Re: Re: errors pop

grr crap the only lib that was not in my favorite ... so i missed the update .... sorry


Originally Posted by sirinsidiator
Originally Posted by Anceane
So i checked i have all the libraries asked and i have them all from last version for each
At drop into the game, those two errors :

Code:
user:/AddOns/DebugLogViewer/StartUp.lua:74: function expected instead of nil
stack traceback:
user:/AddOns/DebugLogViewer/StartUp.lua:74: in function '(main chunk)'
|caaaaaa<Locals> ADDON_NAME = "DebugLogViewer", DLV = tbl, LDL = tbl, ZO_ERROR_FRAME = tbl, internal = tbl, class = tbl, gettext = user:/AddOns/LibGetText/LibGetText.lua:18, LEVEL_TO_LOCALIZED_STRING = tbl, LOG_DETAIL_MESSAGE_TEMPLATE = "%s |r%s", LOG_DETAIL_TITLE_TEMPLATE = "%s %s", nextEventHandleIndex = 1, RegisterForEvent = user:/AddOns/DebugLogViewer/StartUp.lua:42, UnregisterForEvent = user:/AddOns/DebugLogViewer/StartUp.lua:51, PrepareOutput = user:/AddOns/DebugLogViewer/StartUp.lua:55, OnAddonLoaded = user:/AddOns/DebugLogViewer/StartUp.lua:64 </Locals>|r
Code:
user:/AddOns/DebugLogViewer/LogViewer.lua:19: function expected instead of nil
stack traceback:
user:/AddOns/DebugLogViewer/LogViewer.lua:19: in function '(main chunk)'
|caaaaaa<Locals> DLV = tbl, LDL = tbl, internal = tbl, gettext = user:/AddOns/LibGetText/LibGetText.lua:18, PrepareOutput = user:/AddOns/DebugLogViewer/StartUp.lua:55, DEFAULT_SETTINGS = tbl, LEVEL_TO_LOCALIZED_STRING = tbl, LOG_VIEWER_TAG_TEMPLATE = "%s/%s", LOG_VIEWER_TAG_WITH_REPS_TEMPLATE = "%s/%s (%dx)", LOG_DATA = 1, LOG_ENTRY_HEIGHT = 30, TIME_FILTER_SESSION = 1, TIME_FILTER_UI_LOAD = 2, TIME_FILTER_ALL = 3 </Locals>|r
Thank you
The DebugLogViewer relies on LibDebugLogger v1.1, so you need to make sure to update that library (update was released earlier today).
__________________
Report comment to moderator  
Reply With Quote
Unread 06/01/19, 11:20 AM  
Anceane
 
Anceane's Avatar

Forum posts: 268
File comments: 837
Uploads: 0
Loot log chat problem after installing

I dont know if as user i have to use this, but if yes, there is a little problem.

I have the log of my loot going on the chat, after installing Logviewer, i was not receiving any info or update on my loot.

So i made a test

without :

- doing my writ dailies, i receive the information about the content of the crat
- selling a ornate item appear in the log too
- transfering into my back works too

With :
Nothing shows up at any moment

Is there a setting to do for this into the Viewer ?

Thank you

the addons i use for the log loot and info are :

- luiextended and Pchat
__________________
Report comment to moderator  
Reply With Quote
Unread 06/01/19, 05:39 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1446
File comments: 991
Uploads: 37
Re: Loot log chat problem after installing

Originally Posted by Anceane
I dont know if as user i have to use this, but if yes, there is a little problem.

I have the log of my loot going on the chat, after installing Logviewer, i was not receiving any info or update on my loot.

So i made a test

without :

- doing my writ dailies, i receive the information about the content of the crat
- selling a ornate item appear in the log too
- transfering into my back works too

With :
Nothing shows up at any moment

Is there a setting to do for this into the Viewer ?

Thank you

the addons i use for the log loot and info are :

- luiextended and Pchat
This addon is intended for both authors and regular players alike. The biggest benefit for non-authors is that it will suppress the Lua Error pop-up that could show up in the worst situations (e.g. mid combat).

The loot info should be shown in the quick log, unless you hid that window (bottom right of the screen). Maybe you can send me a screenshot or video. I'll also check out if Lui does something strange.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 06/01/19, 07:08 PM  
Anceane
 
Anceane's Avatar

Forum posts: 268
File comments: 837
Uploads: 0
Re: Re: Loot log chat problem after installing

Originally Posted by sirinsidiator
Originally Posted by Anceane
I dont know if as user i have to use this, but if yes, there is a little problem.

I have the log of my loot going on the chat, after installing Logviewer, i was not receiving any info or update on my loot.

So i made a test

without :

- doing my writ dailies, i receive the information about the content of the crat
- selling a ornate item appear in the log too
- transfering into my back works too

With :
Nothing shows up at any moment

Is there a setting to do for this into the Viewer ?

Thank you

the addons i use for the log loot and info are :

- luiextended and Pchat
This addon is intended for both authors and regular players alike. The biggest benefit for non-authors is that it will suppress the Lua Error pop-up that could show up in the worst situations (e.g. mid combat).

The loot info should be shown in the quick log, unless you hid that window (bottom right of the screen). Maybe you can send me a screenshot or video. I'll also check out if Lui does something strange.
While i totally understand the benefit of this, for those old old eyes, the quick log is showing way too much information and rolling so fast that i am unable to notice anything, by having it only for 1min i had a log of 3200 .... because it does not log only the loot, but any information from crafting, the guilds, the quests, login in, log out, well anything that my character is doing.

I did try to read but as i said it goes so fast LOl poor me.

i tried to move the window but its not possible i guess.

Also the window is in the right down corner, at the place where the loot from ESO appears.

BUT will that saying, i check myself everyday the log of the library, and so far nothing happened. So i guess i will go on like this. I will keep the lib on but not the viewer as it is for me a real problem and as much as i would like to benefit from it, i really can not enjoy it

So just dont bother for one old eyes gran'ma lmao, your tool is fantastic


__________________
Last edited by Anceane : 06/01/19 at 07:24 PM.
Report comment to moderator  
Reply With Quote
Unread 06/02/19, 04:59 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1446
File comments: 991
Uploads: 37
Re: Re: Re: Loot log chat problem after installing

[quote=Anceane]
Originally Posted by sirinsidiator
While i totally understand the benefit of this, for those old old eyes, the quick log is showing way too much information and rolling so fast that i am unable to notice anything, by having it only for 1min i had a log of 3200 .... because it does not log only the loot, but any information from crafting, the guilds, the quests, login in, log out, well anything that my character is doing.

I did try to read but as i said it goes so fast LOl poor me.

i tried to move the window but its not possible i guess.

Also the window is in the right down corner, at the place where the loot from ESO appears.

BUT will that saying, i check myself everyday the log of the library, and so far nothing happened. So i guess i will go on like this. I will keep the lib on but not the viewer as it is for me a real problem and as much as i would like to benefit from it, i really can not enjoy it

So just dont bother for one old eyes gran'ma lmao, your tool is fantastic
The quick log can be moved, it is just "locked" by default to avoid accidentally changing its location or size. Just click the settings menu icon above the scroll bar and it will show an entry "Unlock Position". Then you can resize and move it. Afterwards you can "Lock Position" again. If you have a hard time reading the text, you can also increase the font size in the settings menu of the addon.
And last but not least, you can configure the quick log to let the shown output disappear after a specific time and remove it once it is hidden (also from the addon settings). That way you only see the newest messages in there, which may be less confusing.

If you still feel like the quick log is not for you, then you will have to wait for the next version of Debug Log Viewer. I plan to add a setting to allow configuring where the chat messages should be shown (quick log or regular chat as before). For now you can edit the file "StartUp.lua" in the DebugLogViewer folder and remove line 74 "LDL:SetBlockChatOutputEnabled(true)".
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Last edited by sirinsidiator : 06/02/19 at 05:00 AM.
Report comment to moderator  
Reply With Quote
Unread 06/02/19, 08:53 AM  
Anceane
 
Anceane's Avatar

Forum posts: 268
File comments: 837
Uploads: 0
Re: Re: Re: Re: Loot log chat problem after installing

Thank you very much for your understanding and yes i will wait and do what you said.

Beside the option to move that i missed, i tried all you said, and it could have worked, but then i have absolutely no more info in my own chat. I have a tab for Npc/quests, loot helping me a lot, and those stay empty while the viewer run.

I tried to set up the output only for error, but no way chat are still empty.


the viewer contains also a lot of information that i have blocked with some addons help, thus making those totally useless.

Again thank you!

UPDATE : not working, my chat windows is invaded by the log in log off of all the 5 guilds even though they are blocked by No Thank you and Pchat
So until the new version is ready, i just not load the viewer but stil will check each day my debuglogger
No worry, and no hurry


[quote=sirinsidiator]
Originally Posted by Anceane
Originally Posted by sirinsidiator
While i totally understand the benefit of this, for those old old eyes, the quick log is showing way too much information and rolling so fast that i am unable to notice anything, by having it only for 1min i had a log of 3200 .... because it does not log only the loot, but any information from crafting, the guilds, the quests, login in, log out, well anything that my character is doing.

I did try to read but as i said it goes so fast LOl poor me.

i tried to move the window but its not possible i guess.

Also the window is in the right down corner, at the place where the loot from ESO appears.

BUT will that saying, i check myself everyday the log of the library, and so far nothing happened. So i guess i will go on like this. I will keep the lib on but not the viewer as it is for me a real problem and as much as i would like to benefit from it, i really can not enjoy it

So just dont bother for one old eyes gran'ma lmao, your tool is fantastic
The quick log can be moved, it is just "locked" by default to avoid accidentally changing its location or size. Just click the settings menu icon above the scroll bar and it will show an entry "Unlock Position". Then you can resize and move it. Afterwards you can "Lock Position" again. If you have a hard time reading the text, you can also increase the font size in the settings menu of the addon.
And last but not least, you can configure the quick log to let the shown output disappear after a specific time and remove it once it is hidden (also from the addon settings). That way you only see the newest messages in there, which may be less confusing.

If you still feel like the quick log is not for you, then you will have to wait for the next version of Debug Log Viewer. I plan to add a setting to allow configuring where the chat messages should be shown (quick log or regular chat as before). For now you can edit the file "StartUp.lua" in the DebugLogViewer folder and remove line 74 "LDL:SetBlockChatOutputEnabled(true)".
__________________
Last edited by Anceane : 06/02/19 at 10:58 AM.
Report comment to moderator  
Reply With Quote
Unread 06/21/19, 06:35 AM  
ChrisK

Forum posts: 0
File comments: 76
Uploads: 0
Awesome!

Love your AddOn - it's really useful.

One question - how to resize the QuickLog? I've unlocked it and can move it around, but cannot find the controls to make it larger or smaller (hinted to in earlier posts here)

Thanks!
Report comment to moderator  
Reply With Quote
Unread 06/21/19, 07:32 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1446
File comments: 991
Uploads: 37
Re: Awesome!

Originally Posted by ChrisK
Love your AddOn - it's really useful.

One question - how to resize the QuickLog? I've unlocked it and can move it around, but cannot find the controls to make it larger or smaller (hinted to in earlier posts here)

Thanks!
You should see the cursor change to a double arrow when you move it over the edge of the quicklog while it is unlocked. Then just click and drag to resize it as you like.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 06/21/19, 07:50 AM  
ChrisK

Forum posts: 0
File comments: 76
Uploads: 0
Re: Re: Awesome!

Whoa! Thanks for the amazingly fast reply!

Worked perfectly after /reloadui

Awesome!
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 11:27 AM  
wambo
AddOn Author - Click to view AddOns

Forum posts: 35
File comments: 390
Uploads: 1
Is there any way to not "snatch" informational chat messages from addons (like loot log or the likes) from the chat ?

I can deactivate the Info Log Level, but it still doesnt appear in chat anymore?
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 01:19 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1446
File comments: 991
Uploads: 37
Originally Posted by wambo
Is there any way to not "snatch" informational chat messages from addons (like loot log or the likes) from the chat ?

I can deactivate the Info Log Level, but it still doesnt appear in chat anymore?
There is no way to do that aside from not using the DebugLogViewer as a user, or addon authors updating their addons to not abuse the d() debug method to print messages in chat.
The issue is that d() is a debug tool and as such DebugLogViewer will capture its output, but most addons simply abuse it to display chat messages to the user, because it happens to print the debug output in chat in the base game (although it bypasses several systems). If you have a specific addon that doesn't print to chat, you should kindly ask the author to make use of LibChatMessage to print those chat messages the proper way.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 04:22 PM  
wambo
AddOn Author - Click to view AddOns

Forum posts: 35
File comments: 390
Uploads: 1
This might be the wrong place to ask, but how complicated is it to do this exchagne?

I have pretty limited programming experience, but I imagine it is about
- adding the LibChatMessage to the dependencies
- Loading the LibChatMessage (maybe?)
- and exchanging the function calls to d() with the one from LibChatMessages?

I could probably try to do that for a few addons, I always wanted to contribute a bit but felt unable to :-/
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 05:15 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1446
File comments: 991
Uploads: 37
Originally Posted by wambo
This might be the wrong place to ask, but how complicated is it to do this exchagne?

I have pretty limited programming experience, but I imagine it is about
- adding the LibChatMessage to the dependencies
- Loading the LibChatMessage (maybe?)
- and exchanging the function calls to d() with the one from LibChatMessages?

I could probably try to do that for a few addons, I always wanted to contribute a bit but felt unable to :-/
It highly depends on how the addon is written. Some just have one central place where they print their chat messages, others have the calls littered all over the place. Some prepend the message with a [Tag], others may even have some settings that affect how it works.

- adding LibChatMessage as a dependency is as simple as adding a new line
Code:
## DependsOn: LibChatMessage>=87
in the txt file of the addon (or just append it to the end if there is already a line with "DependsOn"). The >= 87 is optional, but tells the game to require at least a version of LibChatMessage with an "AddOnVersion" equal or higher to that number.

- Loading is not something the author has to worry about any more. The user has to ensure all required dependencies are present.

- Exchanging d() and df() is the tricky part. First you need to create a chat proxy for the addon:
Lua Code:
  1. local chat = LibChatMessage("MyAddOn", "MAO") -- first string is the long tag, second the short tag
Where to place that depends on the addon structure. If it only has one file you can just put it somewhere on the top. If the addon is split up into multiple files, it will have a global table with a name similar to the addon name somewhere in the lua file that is listed first in the txt. You can just assign it to that table so you have access in all other files. e.g.
Lua Code:
  1. MyAddOn = {}
  2. MyAddOn.chat = LibChatMessage("MyAddOn", "MAO")
and then you can assign it to a local variable in each file where it is needed:
Lua Code:
  1. local chat = MyAddOn.chat

Then you have to locate all places where d and df are used with the help of notepad++' find in files feature (ctrl+shift+f) or a similar tool. The regular expression
Code:
\sdf?\(
and filtering for *.lua files should find everything in most cases. you may also need to check *.xml files in case they contain lua code.
The calls to d() have to be replaced with chat:Print() and calls to df() with chat:Printf().

After that you just need to test that everything is still working and you are done.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

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.