4 ms·
This is really cool! I'm tempted to try and write something generic for this same concept, so i can use it in whatever lang and logging framework desired. Conc
by fizzbatter 10y ago
This is really cool! I'm tempted to try and write something generic for this same concept, so i can use it in whatever lang and logging framework desired.
Concept: A simple pattern match against each line to link their respective contexts. Eg, if you log each request with an id `[timestamp] [request-id] some module: some message`, then theoretically you could parse a log to show visual relation between all request ids.
Furthermore, you could filter out request ids with generic tools like grep/etc.
There must be logging viewer tools that work generically like this though, so perhaps i'd be wasting my time :)
- PabloSichert 10y agoI'd be interested in such a solution, also in regard to the input from another commenter to make this work with nginx. If you have a concrete idea and eventually a project on GitHub, feel free to contact me! Would like to contribute