Skip to content

io microsphere logging log4j Log4jLogger

github-actions[bot] edited this page Apr 11, 2026 · 4 revisions

Log4jLogger

Type: Class | Module: microsphere-log4j | Package: io.microsphere.logging.log4j | Since: 1.0.0

Source: microsphere-log4j/src/main/java/io/microsphere/logging/log4j/Log4jLogger.java

Overview

The Logger adapter class based Log4j Logger

Declaration

class Log4jLogger extends AbstractLogger implements DelegatingWrapper

Author: Mercy

Version Information

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

Version Compatibility

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

Java Version Status
Java 8 ✅ Compatible
Java 11 ✅ Compatible
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-log4j</artifactId>
    <version>${microsphere-logging.version}</version>
</dependency>

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

Import

import io.microsphere.logging.log4j.Log4jLogger;

API Reference

Public Methods

Method Description
isTraceEnabled
trace
trace
isDebugEnabled
debug
debug
isInfoEnabled
info
info
isWarnEnabled
warn
warn
isErrorEnabled
error
error
getDelegate

See Also

  • AbstractLogger
  • Logger

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

Clone this wiki locally