this post was submitted on 21 Dec 2025
135 points (100.0% liked)

Programming

24019 readers
263 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] calcopiritus@lemmy.world 18 points 2 days ago (1 children)

Generally agree. Except:

Logs that are a "debug diary" are not useless. Their purpose is to debug. That's why there's log levels. If you are not interested in that, filter by log levels above debug.

Also, the different formats for fields I see as a necessary evil. Generally, more logs (of verbose log levels) = more good. Which means that there should be as frictionless to write as possible. Forcing a specific format just means that there will be less logs being written.

The json (or any other consistent format) logs seem to be a good idea, but I would keep it to a single debug level (maybe info+error?). So if you want to get wide events, you filter by these log levels to get the full compact picture. But if you are following a debug log chain, it seems a pain to have to search for the "message" field on a potentially order-independent format instead of just reading the log.

TL;DR

Log levels have different purposes, and so they should have different requirements.

[–] public_image_ltd@lemmy.world -3 points 2 days ago (3 children)

Might be a stupid question but wouldn’t it be a good job for fucking AI to read these and tell you where the interesting parts are?

[–] fruitycoder@sh.itjust.works 1 points 15 hours ago

Tbh Ive had some joy using K8Gpt and I'm kind of excited to try Liz for my Rancher stuff.

To me though, RAG AI is good as a semantic search at the moment but you really should check with your own eyes and not assume the convincing string machine has any actual understanding about what it is saying.

Does help though when your eyes are bleeding and your troubleshooting something youre just not sure where to look.

[–] calcopiritus@lemmy.world 9 points 2 days ago

Logs' purpose is to tell you what actually happened in the system. I don't think it is a good idea to use something that "hallucinates" to tell you what really happened.

[–] kippinitreal@lemmy.world 7 points 2 days ago

LLM would be great to parse all that data, but I think you miss OP's point. AI can be useful to automate mundane jobs, i.e. jobs you can't get away from. OP's point in my view is verbose logs are noisey & difficult to parse, because you're logging everything unnecessarily. If you Log interesting things and mark them with context & logging levels, Then you can dive in as deep as you need, when you need. Why add complexity (& other hazards) of AI when you can fix the root of the problem first yourself.