Understanding and Implementing Logging Components in Java Applications
1 Introduction to Logging
Because applications ultimately run on servers without IDEs or consoles, we must rely on log files to locate bugs.
Logging is an essential component in software applications, serving as a critical tool for debugging and data collection management. It enables us to monitor variable value changes and code execution traje ...
Posted on Tue, 15 Sep 2026 16:44:45 +0000 by celeb-x2
Implementing and Understanding Java's Service Provider Interface
Code Changes Before and After Using SPI
Loading JDBC Driver Implementations
Before adopting the SPI mechanism, establishing a database connection with JDBC typically required explicit driver class loading:
// Manually load the MySQL Driver implementation
Class.forName("com.mysql.cj.jdbc.Driver");
Connection conn = DriverManager.getCon ...
Posted on Tue, 01 Sep 2026 16:47:54 +0000 by chris9902
Logback Configuration in Spring Boot Applications
Logback is a robust, fast, and flexible logging framework developed by the original author of log4j. Its official site is http://logback.qos.ch. It is structured into three core modules:
logback-core: foundational module supporting the other two.
logback-classic: an enhanced version of log4j, fully implementing the SLF4J API, enabling seamless ...
Posted on Wed, 19 Aug 2026 17:00:27 +0000 by Pepe
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
Understanding Java's ServiceLoader for Dynamic Provider Discovery
Understanding Java's ServiceLoader for Dynamic Provider Discovery
ServiceLoader is a Java utility designed for dynamic loading of service providers. A service in this context refers to a set of interfaces and classes (typically abstract classes), while a service provider represents an implementation of that service. ServiceLoader can automatica ...
Posted on Tue, 26 May 2026 16:23:56 +0000 by wystan