Quantcast Libdebuglogger.lua - ESOUI
Thread Tools Display Modes
05/07/19, 01:30 PM   #1
Anceane
 
Anceane's Avatar
Join Date: Feb 2014
Posts: 210
Libdebuglogger.lua

humm i just noticed this in my savedvariables, and was wondering what to do with all the logs inside ?

Are those errors ? or informations you authors are needing ?

Its size actually reach 1.29MB, not much but still a lot i think.


Thank you
__________________
  Reply With Quote
05/08/19, 05:34 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,263
That file is like a blackbox in a plane. It contains useful information for authors to figure out why an error is happening. It cleans itself up, so it shouldn't grow much larger than 1-2MB.

Right now it logs the following information when you log in on a character:
account name - in case you play with multiple accounts and that is somehow causing issues (e.g. with the saved variables)
character name - in case the problem occurs due to switching characters or due to some special characters in the name
login time - in case a problem occurs a fixed time after logging in on the character
client version - hope that doesn't need an explanation
megaserver - in case of server specific issues
service type - steam or non-steam in case that makes a difference
ui type - keyboard or console ui is quite an important detail
eso+ - changes how some apis react
language - in case it is some localization problem
out of date checkbox state - good to know when someone has an issue with some addon not loading
addon count - how many are active and how many are installed
addon load events - this gives information about the load order of your addons, the loaded addon version and which subdirectory of the addon folder it was loaded from

In addition it also logs Lua errors and addons can use the library to log custom messages. It also offers some settings to log even more information. There are 4 "levels" of log messages (debug, info, warning, error) and the default is to log everything except debug messages. Each message can also log a stack trace so an author knows where the log itself is coming from, which is also disabled by default.

The goal for this is to make debugging easier for authors by providing a file that contains all the information users usually forget to mention.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote
05/08/19, 06:48 AM   #3
Anceane
 
Anceane's Avatar
Join Date: Feb 2014
Posts: 210
ok, i will check in to see if the logs contains lua errors and then post them if needed.

though i can tell you than they can really grow more than 1-2 mb, i have 2 files up to 4 mb (i have older versions as i do regularly save of my savedvariables folder in case i encounter a big problem with new addon version).

But this is probably due to the fact that i have 2 accounts and log everyday each characters during the event (22 characters, and sometimes 11 more when i am courageous enough to log husband account so he can complete the event)

Now i have a question concerning :
character name - in case the problem occurs due to switching characters or due to some special characters in the name

i encounter from time to time actually some trouble with the save of addons, and it seems to be tied with the characters included in my account naming and names. The addons sometimes create two versions of my account. one with the correct naming and one with adding some characters, as some example shown in the spoiler below.
i find a way to correct that by leaving the game, editing the .lua by suppressing the wrong naming but if i create a new character the problem arise again.

Is there something i can do ?

Thank you

Warning: Spoiler


correct naming is : @Esmerada - character Aran

Originally Posted by sirinsidiator View Post
That file is like a blackbox in a plane. It contains useful information for authors to figure out why an error is happening. It cleans itself up, so it shouldn't grow much larger than 1-2MB.

Right now it logs the following information when you log in on a character:
account name - in case you play with multiple accounts and that is somehow causing issues (e.g. with the saved variables)
character name - in case the problem occurs due to switching characters or due to some special characters in the name
login time - in case a problem occurs a fixed time after logging in on the character
client version - hope that doesn't need an explanation
megaserver - in case of server specific issues
service type - steam or non-steam in case that makes a difference
ui type - keyboard or console ui is quite an important detail
eso+ - changes how some apis react
language - in case it is some localization problem
out of date checkbox state - good to know when someone has an issue with some addon not loading
addon count - how many are active and how many are installed
addon load events - this gives information about the load order of your addons, the loaded addon version and which subdirectory of the addon folder it was loaded from

In addition it also logs Lua errors and addons can use the library to log custom messages. It also offers some settings to log even more information. There are 4 "levels" of log messages (debug, info, warning, error) and the default is to log everything except debug messages. Each message can also log a stack trace so an author knows where the log itself is coming from, which is also disabled by default.

The goal for this is to make debugging easier for authors by providing a file that contains all the information users usually forget to mention.
__________________

Last edited by Anceane : 05/08/19 at 06:51 AM.
  Reply With Quote
05/08/19, 09:57 AM   #4
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,263
That sounds like some encoding problems with your names. Do you know which addons specifically create more than one account in your saved variables? Does it also happen in the ZO_Ingame.lua file?
The strange characters you see can also be due to the editor you use to look at the file. It needs to be aware of UTF8 encoding, otherwise it will look like what you posted (e.g. Notepad++).
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote
05/08/19, 10:22 AM   #5
Anceane
 
Anceane's Avatar
Join Date: Feb 2014
Posts: 210
Originally Posted by sirinsidiator View Post
That sounds like some encoding problems with your names. Do you know which addons specifically create more than one account in your saved variables? Does it also happen in the ZO_Ingame.lua file?
The strange characters you see can also be due to the editor you use to look at the file. It needs to be aware of UTF8 encoding, otherwise it will look like what you posted (e.g. Notepad++).
LUI extended do it, when i use the function to copy an account or character (options provided by the addon) - I mentionned it to the author, and i think he is trying to find out why this problem occurs but he already thought about the naming - but never posted anything from libdebbug to him

Pchat do it too, for each new character created in the new account, or if i use the function sync to character from the ingame addon option. (but never posted as the addon seems a little abandonned)

For those two addons, i never encountered this problem with my other account.

ZO_Ingame.lua is fine, names are all correct

As for the editor, i use Notepad++
__________________
  Reply With Quote
05/08/19, 10:56 AM   #6
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,263
Could you pm me the file so I can take a look myself? Encoding information often gets lost when you only copy paste parts of it and in this case it seems important.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote
05/08/19, 11:55 AM   #7
Anceane
 
Anceane's Avatar
Join Date: Feb 2014
Posts: 210
Originally Posted by sirinsidiator View Post
Could you pm me the file so I can take a look myself? Encoding information often gets lost when you only copy paste parts of it and in this case it seems important.
done used Zerobin.net as the file was to big for a copy past in the pm
__________________
  Reply With Quote
05/08/19, 12:54 PM   #8
Anceane
 
Anceane's Avatar
Join Date: Feb 2014
Posts: 210
k use dropbox, sent you a link, i think i did good at least i hope, never had to use this before
__________________
  Reply With Quote
05/08/19, 03:01 PM   #9
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,263
As explained in the pm, notepad++ mistakenly opens the file with ANSI encoding due one of the local variables in a stacktrace being truncated incorrectly by the game. This is purely visual and shouldn't have anything to do with the issue in pChat and LUIe.
As for LUIe, I took a quick look at how it copies the character settings, but didn't see any obvious reason why it would break when the name contains special characters. Maybe you can provide steps how to reproduce the issue and upload the (unedited) saved variables file to dropbox to give the author more information?
Reporting an issue in the comments of an addon (pChat) when it looks a bit abandoned is still better than keeping it to yourself. More often than not an author is not aware of a problem and if they see that someone takes interest in an addon, they may feel like doing an update.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote
05/08/19, 04:28 PM   #10
Anceane
 
Anceane's Avatar
Join Date: Feb 2014
Posts: 210
Originally Posted by sirinsidiator View Post
As explained in the pm, notepad++ mistakenly opens the file with ANSI encoding due one of the local variables in a stacktrace being truncated incorrectly by the game. This is purely visual and shouldn't have anything to do with the issue in pChat and LUIe.
As for LUIe, I took a quick look at how it copies the character settings, but didn't see any obvious reason why it would break when the name contains special characters. Maybe you can provide steps how to reproduce the issue and upload the (unedited) saved variables file to dropbox to give the author more information?
Reporting an issue in the comments of an addon (pChat) when it looks a bit abandoned is still better than keeping it to yourself. More often than not an author is not aware of a problem and if they see that someone takes interest in an addon, they may feel like doing an update.
THank you again.

I should be able to reproduce easily for LUIe, just by starting the addon as new again, and then apply the settings to the other account (i have a save of the good savedvariables so its not problem)

I will also post on Pchat to explain the problem.
__________________
  Reply With Quote
05/08/19, 06:07 PM   #11
Anceane
 
Anceane's Avatar
Join Date: Feb 2014
Posts: 210
Luie

as for today, i can not reproduce the naming error. (the only change i made recently was to update the new libaddonmenu - version 29)

The only persistent error, is that the copy from an account to another account is not working at all.

1 - log in the first account
2 - go into LUIe settings and change some settings (for the purpose of the test i did not change a lot though)
3 - reloadui to save the new settings
4 - log out
5 - log in : settings are good as i wanted

-----

1 - log in the second account
2 - go to the LUIe settings and select the first choice :
- copy from the above @account
(i select then here the name of the first account)
3 - reloadui to save the new settings that were on the screen
4 - log out
5 - log in : LUIe did not save anything from the @first account settings.


I consider that if the naming issue is gone, i can deal with having to redo the whole settings directly (i take picture of the settings and then apply them to the other account. easiest way i found out, as settings are not shown at the place to compare really well).

I will post again into LUIe to update my informations.

Thank you
__________________
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Libdebuglogger.lua

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off