Configuring and Using Logback for Java Application Logging

Required Dependencies <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.30</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>1.2.3 ...

Posted on Tue, 23 Jun 2026 16:54:04 +0000 by ternto333

Configuring Log4j 1 and Log4j 2 for MyBatis Logging

Include the necessary dependencies in your project's build file. For Log4j 2, use the log4j-core artifact. For Log4j 1, include the older log4j library. Ensure only one version is active on the classpath to avoid conflicts. <!-- Log4j 2 --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId&g ...

Posted on Fri, 08 May 2026 18:17:30 +0000 by hollyspringer