[Eg-newdevs] Reading logs with VSCode
Tiffany Little
tlittle at georgialibraries.org
Thu Jan 26 08:55:01 EST 2023
Morning everyone,
I just had occasion this week to trawl through EG logs, and I found some
VSCode extensions that really helped (and I thought were cool) so I wanted
to share.
So basically I had the logs from our production server for about a 4 hour
span. It was a ginormous file. I found what I was looking for--Acq was
spamming a perm check. So what I wanted was to see one person's activity to
see what they were doing, but trying to parse out that one person from a
constant torrent of activity wasn't working.
So in Googling, I found the extension Filter Line
<https://marketplace.visualstudio.com/items?itemName=everettjf.filter-line>.
There's a little finagling I had to do because the log file was so huge
(detailed on that page), but after that I did my search term as the user's
authtoken. And lo and behold, it pulled out all of the lines that had that
user's authtoken, in time order, so I could literally step through and
watch what they had done. You can also highlight any number of lines, and
in the bottom left of your console you can see the time elapsed. So I could
see that it was spamming this perm check like 50 times in the span of 2
seconds.
The second thing I found is Log File Highlighter
<https://marketplace.visualstudio.com/items?itemName=emilast.LogFileHighlighter>.
I had to rename my text file with a .log extension for it to pick it up,
but once it did it color codes the different pieces of info in the log. It
just made it more readable for me (and y'all know I love color coding).
Apparently you can even customize the colors too, but I haven't gotten
there yet.
I just thought those were so cool, so hopefully they're helpful to someone.
:)
Tiffany
Tiffany Little, PINES Services Specialist: Acquisitions
------------------------------
Georgia Public Library Service | University System of Georgia
2872 Woodcock Blvd, Suite 250 l Atlanta, GA 30341
(404) 235-7161 | tlittle at georgialibraries.org
Join our email list <http://georgialibraries.org/> for stories of Georgia
libraries making an impact in our communities.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.evergreen-ils.org/pipermail/eg-newdevs/attachments/20230126/f9ab0db9/attachment.htm>
More information about the Eg-newdevs
mailing list