How can we visually add separators in log files, based on conditions between consecutive lines?
Sample log file:
[DEBUG][2016-05-26 10:24:51,714][FileHelper] - [realContextPath] [DEBUG][2016-05-26 10:24:52,369][DbConnectionImpl] - [DELETE FROM xct_log] [DEBUG][2016-05-26 10:24:56,925][DSRestrictionConverter] - [parseRestrict] [DEBUG][2016-05-26 10:24:56,976][DbConnectionImpl] - [UPDATE hd_log]
The goal is to have a visual separator when there is more than 2 seconds between consecutive timestamps. In the above case, it'd be between the 2nd and the 3rd line.
To make that separator visible, we could use overline or underline properties, for example. No need to physically add something to the buffer...
(This is a slightly rewritten version of question Format SQL code, with a MUCH better title.)