|
|
|
|
|
by crdoconnor
4053 days ago
|
|
>My point is really around having the date be in a well defined place that isn't necessarily defined by the application that's logging. If the log entry date is at the beginning of the line, there's no ambiguity as to whether it's the log entry date or some other date being logged, and it also doesn't require parsing the JSON at all to filter by the date. Take this example: 1-1-15 1:1:1 Info Log message A 12-13-15 12:34:55 Debug Log message B 12-13-15 1:34:55 Error log message C 12-13-15 1:34:55Error log message D [12-13-15 1:34:55]Error log message E It doesn't require parsing JSON to get the date, you're right about that. It's harder than parsing JSON, though. |
|