Apache Log4j2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback’s architecture. The tutorial will introduce way to configure Apache Log4j2 with Kotlin SpringBoot.
Continue reading “Kotlin SpringBoot configure Apache Log4j2”
Java 9 defines a minimal logging API which platform classes can use to log messages, together with a service interface for consumers of those messages. In this tutorial, we’re gonna take a look at new Java 9 Platform Logging API and an example that implements LoggerFinder service which can route platform log messages to the logging framework for application logger instead of system logger.
Continue reading “Java 9 Platform Logging API and Service”
Spring Boot 1.5.1 provides some new features. Among them, we have a new actuator loggers endpoint, which helps us to view and change logging level of application with the MVC endpoint.
This tutorial shows you the way to do this with http GET/POST request.
Continue reading “How to change logging level with the MVC endpoint – new Actuator Loggers Endpoint | Spring Boot”
Logging is so important in software development. In simple projects, JDK logging can be a solution, but not for enterprise applications because it lacks flexibility. This tutorial will help you know how to do logging with SLF4J and Logback.
Related Article: Logging with SLF4J
Continue reading “Logging with SLF4J and Logback”
Logging is important in software development. There are many famous frameworks to be used for logging: Log4j, Logback, java.util.logging… If we wanna change the logging framework without affecting Java code, SLF4J is the good choice.
This tutorial writes about SLF4J with example of how to apply SLF4J in some logging frameworks.
Continue reading “Logging with SLF4J”