KS2011: Structured error logging
KS2011: Structured error logging
Posted Oct 25, 2011 3:19 UTC (Tue) by dlang (guest, #313)In reply to: KS2011: Structured error logging by dlang
Parent article: KS2011: Structured error logging
don't invent a new logging mechanism, just clean up the formatting of your logs
if the kernel could just adopt a rule along the lines of:
All new log messages would start at the beginning of a line, all continuations of a log message would start with whitespace
it would be a huge win.
this would be enough to let log daemons figure out what a complete log is, and from there log parsers can take it reasonably.
log parsers frequently devolve into regex hell, but they don't have to, and it doesn't require creating a new logging protocol to solve the problem.
