Giter Club home page Giter Club logo

log4j2-migrator's Introduction

log4j2-migrator

Script to migrate log4j configurations to log4j2.

The objective is to migrate a log4j.properties to log4j2.xml configuration for simple use cases. For more complex uses you'll need to translate part or all the configuration manually.

The script doesn't have any error checking whatsoever. The input should be valid and correct.

No guarantee on output correction. Please review and test the generated configuration.

Please report any issues at https://github.com/mulesoft-labs/log4j2-migrator/issues

Usage

groovy log4j2migrator.groovy pathname-to-log4j.properties

Options

-d,--debug print debug information -h,--help usage information -o,--output file to write the output

Example

groovy log4j2migrator.groovy test/log4j.properties > log4j2.xml

Limitations

  • Can't translate multiple appenders for a logger
  • Only knows about ConsoleAppenders, RollingFileAppender and DailyRollingFileAppender (simple configuration) appenders
  • Doesn't understand log4j.xml as input

log4j2-migrator's People

Contributors

adobni avatar knoguchi avatar l3ender avatar renatoathaydes avatar xvonabur avatar

Watchers

 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.