[<<][softarch][>>][..]
Sun Aug 16 19:14:27 EDT 2020

Logging

The core problem I face atm is logging.  I could use some fresh ideas
there.  I know apenwarr wrote about this, but it's not exactly what
I'm looking for.

https://apenwarr.ca/log/20190216

Interesting conclusion though:

  - you want structured events in your database.

  - you need to be able to produce them from unstructured logs.

  And once you can do that, exactly how those structured events are
  produced (either from logs or directly from structured trace output)
  turns out to be unimportant.


I think my problem is much simpler: I just want proper time stamps.

First, is there a way to automatically add time stamps?  Prefix a
timestamp for every character that is printed directly following a
newline.

That is possible if infof is patched.  Maybe just add a hook there?





[Reply][About]
[<<][softarch][>>][..]