Skip to content
This repository

For decoding log files

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore Fix chmod for .gitignore and LICENSE.txt
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 codeStyle.xml
Octocat-spinner-32 decode.sh
Octocat-spinner-32 makejar.sh Add pom-uber.xml to create executable jar
Octocat-spinner-32 pom-uber.xml
Octocat-spinner-32 pom.xml
README.md

logback-decoder

A log file analysis tool for logback output

Snapshot

Overview

logback-decoder is a command-line tool for log file analysis of text output from the logback framework.

The current version is 0.1.0. This project is in alpha development, and we're currently seeking volunteers! Please email the development mailing list for more info.

Download

Usage

logback-decoder is normally invoked by java -jar logback-decoder-0.1.0.jar. For clarity, the following examples use a wrapper script named decode.sh.

show help

$ ./decode.sh --help
usage: logback-decoder
 -D <property=value>      use value for given property
 -d,--debug               Enable debug mode
 -f,--input-file <path>   Log file to parse (default: stdin)
 -h,--help                Print this help message and exit
 -p,--layout <pattern>    Layout pattern to use (overrides file's pattern)
 -v,--version             Print version information and exit
    --verbose             Be verbose when printing information

parse log file

$ ./decode.sh -f foo.log
...

pipe in data from stdin

$ echo 2013-07-22 [main]: hello world | ./decode.sh -d -p '%d{yyyy-MM-dd} [%t]: %m%n'
[TRACE] regex: (?<date>\d{4}-\d{2}-\d{2})
[DEBUG] date = 2013-07-22

Build

logback-decoder is built with Apache Maven 2+. Use these commands to create the executable JAR (with debug symbols).

git clone git://github.com/qos-ch/logback-decoder.git
cd logback-decoder
./makejar.sh

The jar would be in: ./target/logback-decoder-<version>.jar

Something went wrong with that request. Please try again.