Package org.springframework.boot.logging
Interface LoggingSystemFactory
- All Known Implementing Classes:
JavaLoggingSystem.Factory,Log4J2LoggingSystem.Factory,LogbackLoggingSystem.Factory
public interface LoggingSystemFactory
Factory class used by
LoggingSystem.get(ClassLoader) to find an actual
implementation.- Since:
- 2.4.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingSystemFactoryReturn aLoggingSystemFactorybacked byspring.factories.getLoggingSystem(ClassLoader classLoader) Return a logging system implementation ornullif no logging system is available.
-
Method Details
-
getLoggingSystem
Return a logging system implementation ornullif no logging system is available.- Parameters:
classLoader- the class loader to use- Returns:
- a logging system
-
fromSpringFactories
Return aLoggingSystemFactorybacked byspring.factories.- Returns:
- a
LoggingSystemFactoryinstance
-