Package com.helger.phase4.logging
Class Phase4LoggerFactory
java.lang.Object
com.helger.phase4.logging.Phase4LoggerFactory
Specific logger factory for the phase4 library that allows an easy customization of log messages.
- Since:
- 3.1.0-beta3
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Phase4DelegatedLoggerGet a new SLF4J logger using the provided logger name.static @NonNull Phase4DelegatedLoggerGet a new SLF4J logger using the provided class.
-
Method Details
-
getLogger
Get a new SLF4J logger using the provided class.- Parameters:
aClass- The class to use. May not benull.- Returns:
- The wrapped
Phase4DelegatedLogger. Nevernull.
-
getLogger
public static @NonNull Phase4DelegatedLogger getLogger(@Nonempty @NonNull @Nonempty String sLoggerName) Get a new SLF4J logger using the provided logger name.- Parameters:
sLoggerName- The logger name to use. May neither benullnor empty.- Returns:
- The wrapped
Phase4DelegatedLogger. Nevernull.
-