Skip to content

io microsphere observability logging log4j2 spring boot autoconfigure Log4j2AutoConfiguration

github-actions[bot] edited this page Jul 20, 2026 · 2 revisions

Log4j2AutoConfiguration

Type: Class | Module: microsphere-observability-logging-spring-boot | Package: io.microsphere.observability.logging.log4j2.spring.boot.autoconfigure | Since: 1.0.0

Source: microsphere-observability-logging-spring-boot/src/main/java/io/microsphere/observability/logging/log4j2/spring/boot/autoconfigure/Log4j2AutoConfiguration.java

Overview

Log4j2 Auto-Configuration

Declaration

public class Log4j2AutoConfiguration

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.0-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-observability-logging-spring-boot</artifactId>
    <version>${microsphere-observability.version}</version>
</dependency>

Tip: Use the BOM (microsphere-observability-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.observability.logging.log4j2.spring.boot.autoconfigure.Log4j2AutoConfiguration;

API Reference

Public Methods

Method Description
kafkaAppender
onApplicationStartedEvent

See Also

  • Log4J2LoggingSystem
  • LoggingApplicationListener
  • KafkaAppender
  • KafkaAutoConfiguration

This documentation was auto-generated from the source code of microsphere-observability.

Clone this wiki locally