Skip to content

io microsphere logging LoggingUtils

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

LoggingUtils

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

Source: microsphere-logging-commons/src/main/java/io/microsphere/logging/LoggingUtils.java

Overview

The Utilities class of Logging

Declaration

public abstract class LoggingUtils

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-logging-commons</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.LoggingUtils;

API Reference

Public Methods

Method Description
loadAll Load all Logging implementations in priority from SPI
loadAll Load all Logging implementations in priority from SPI
load Load the highest Prioritized priority Logging from SPI
load Load the highest Prioritized priority Logging from SPI

Method Details

loadAll

public static List<Logging> loadAll()

Load all Logging implementations in priority from SPI

loadAll

public static List<Logging> loadAll(@Nullable ClassLoader classLoader)

Load all Logging implementations in priority from SPI

load

public static Logging load()

Load the highest Prioritized priority Logging from SPI

load

public static Logging load(@Nullable ClassLoader classLoader)

Load the highest Prioritized priority Logging from SPI

See Also

  • Logging

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

Clone this wiki locally