Skip to content
tony19 edited this page Jun 16, 2012 · 2 revisions

logback-decoder is a utility that decodes log files. It parses a log file for log events (based on a given layout pattern) and writes them out in a specific format (default is JSON). The output is written to stdout (or a file).

For example, given this log file:

#logback.classic pattern: %d %m%n
2012-06-13 18:11:15,805 Hello world!
2012-06-13 18:12:40,923 foo bar

...the output would be something like this (subject to change):

"log": {
	"pattern": "%d %m%n",
	"count": "2",
	"events": {
	
		"1": {
			"d": "2012-06-13 18:11:15,805",
			"m": "Hello world!"
		},
		
		"2": {
			"d": "2012-06-13 18:12:40,923 ",
			"m": "foo bar"
		}
	}
}

NOTE: This project is in its early development stages.

Clone this wiki locally