Giter Site home page Giter Site logo

system-designer / example-log4j2-appender Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kdgregory/example-log4j2-appender

0.0 0.0 0.0 25 KB

An example showing the progressive development of a Log4J 2.x appender

License: Apache License 2.0

Java 100.00%

example-log4j2-appender's Introduction

This project is an example showing the progressive development of a Log4J 2.x appender, layout, and lookup. It exists to support this post on my website.

Each stage of development is recorded as a separate commit:

  • stage-1
    The basic appender, which writes output to StdOut.

  • stage-2
    Adds a configuration property, repeats, which will write the log message multiple times.

  • stage-3
    Uses a Builder object to configure the appender.

  • stage-4
    Creates a configuration interface that's implemented by the Builder, so that the appender doesn't have to unpack configuration.

  • stage-5
    Demonstration of the appender life-cycle, using another custom appender that reports each life-cycle method invocation.

  • stage-6
    Adds support for layouts that provide a header and footer.

  • stage-7
    Implements an example layout.

  • stage-8
    Updates the example layout to support Lookups (and use them internally).

  • stage-9
    Implements a custom Lookup for hostname and process ID.

  • stage-10
    Adds unit tests.

Each of the stage names above is a tag that you can use to check out the project at that stage.

All of the stages are buildable using Maven.

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.