-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite branch: lump stack trace #10
Comments
This one's gonna take some work. |
OK, I’ve got some working code that places all lines containing the identical time stamps into an array. This gives me an array of arrays instead of an array of lines. This should group everything somewhat chronologically but I’ve found instances where several stack traces occur at the same time stamp. Naturally the formatting doesn’t work for this. |
can you post an example of the debug file? the examples I was working with didn't have a date line on each portion of a stack trace. |
Here's my local debug.log. Not sure how different others would be. Can you post example you're working with? |
gonna see how many other examples I can get of logfiles so I can account for things. here's one I am working with: https://gist.github.com/norcross/f6e7da2b9c7cada87c17c84805af544f |
This is taken from a
|
Another example debug log file if it helps. https://gist.github.com/lukecav/7c12ac66b3ab2e414872b8fc1b186fea |
There seems to be lots of variation. Is anyone doing something to modify the output to their log? |
No changes made to how the debug.log is being outputted. |
nope. some of mine is old, but i imagine that different log functions and different environments may impact the formatting. |
Seems like all the variations will be problematic in trying to group the errors. It might simply be messing with the CSS from here. |
I attempted to group multi-line things. I'm going to review the other examples of logfiles to see if I can find some consistency. |
Unfortunately if we can't somehow consistently group the errors, I think reversing the order will be confusing. Maybe some sort of regex from line before |
I’ve already reverted the sort order to default back to previous behavior. I’ve also set it so the formatting functions are registered and called, and thus filterable. not sure that’s the final way I want to load it, but that’s the general way i plan on handling it. this may allow for people to address their own edge cases and formatting needs. |
the longer I look at these differences, the more I think I may remove everything other than the very basic formatting (line breaks, encoding, etc) and work on the visual display |
and looking like https://highlightjs.org/ may get me most of the way there |
It would be great to clump the entire PHP stack trace from
PHP Notice
orPHP Fatal
throughPHP Stack Trace
and every identically timestamped line that follows.That whole trace could be a single div and sorted appropriately.
Maybe a regex from
PHP Notice
toPHP Notice
or whatever that starting line happens to be.Not easy I know.
Currently each line in it's own div and displayed in reverse.
The text was updated successfully, but these errors were encountered: