Code Monkey home page Code Monkey logo

logback-decoder's Introduction

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

logback-decoder's People

Contributors

tony19 avatar ceki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.