Giter Site home page Giter Site logo

hello-world's Introduction

Upgrade log4j2 replacing log4j info

  • log4j2 maven version 2.17.0
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-api</artifactId>
		<version>2.17.0</version>			
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-core</artifactId>
		<version>2.17.0</version>
	</dependency>	
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-1.2-api</artifactId>
		<version>2.17.0</version>
	</dependency>
  • Maven check dependencies
 mvn dependency:tree
 
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------------< hello-world:hello-world >-----------------------
[INFO] Building hello-world 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ hello-world ---
[INFO] hello-world:hello-world:jar:0.0.1-SNAPSHOT
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.17.0:compile
[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.17.0:compile
[INFO] +- org.apache.logging.log4j:log4j-1.2-api:jar:2.17.0:compile
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.17.0:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.apache.logging.log4j:log4j-jcl:jar:2.17.0:compile
[INFO] \- org.apache.logging.log4j:log4j-jul:jar:2.17.0:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.161 s
[INFO] Finished at: 2021-12-19T07:21:33+08:00
[INFO] ------------------------------------------------------------------------
  • Exclude conflicting dependencies

    log4j Dependency Dependencies to Exclude1 Exclude2 Exclude3
    log4j-1.2-api log4j:log4j org.slf4j:log4j-over-slf4j
    log4j-core log4j:log4j ch.qos.logback:logback-core org.apache.logging.log4j:log4j-to-slf4j
    log4j-jcl org.slf4j:jcl-over-slf4j
    log4j-jul org.slf4j:jul-to-slf4j
    log4j-slf4j-impl org.apache.logging.log4j:log4j-to-slf4j ch.qos.logback:logback-core
  • Reference

log4j2 FAQ

log4j2 VS jul LOG level

slf4j manual

java-util-logging Level.FINE no show

hello-world's People

Contributors

dependabot[bot] avatar eyipcm 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.