|
|
|
@ -16,7 +16,6 @@
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.logging;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.env.EnvironmentPostProcessorsFactory;
|
|
|
|
|
import org.springframework.core.io.support.SpringFactoriesLoader;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -29,7 +28,7 @@ import org.springframework.core.io.support.SpringFactoriesLoader;
|
|
|
|
|
public interface LoggingSystemFactory {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return a logging system implementation or {@code null} if not logging system is
|
|
|
|
|
* Return a logging system implementation or {@code null} if no logging system is
|
|
|
|
|
* available.
|
|
|
|
|
* @param classLoader the class loader to use
|
|
|
|
|
* @return a logging system
|
|
|
|
@ -37,9 +36,8 @@ public interface LoggingSystemFactory {
|
|
|
|
|
LoggingSystem getLoggingSystem(ClassLoader classLoader);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return a {@link EnvironmentPostProcessorsFactory} backed by
|
|
|
|
|
* {@code spring.factories}.
|
|
|
|
|
* @return an {@link LoggingSystemFactory} instance
|
|
|
|
|
* Return a {@link LoggingSystemFactory} backed by {@code spring.factories}.
|
|
|
|
|
* @return a {@link LoggingSystemFactory} instance
|
|
|
|
|
*/
|
|
|
|
|
static LoggingSystemFactory fromSpringFactories() {
|
|
|
|
|
return new DelegatingLoggingSystemFactory(
|
|
|
|
|