Package io.cui.tools.logging
Class CuiLoggerFactory
- java.lang.Object
-
- io.cui.tools.logging.CuiLoggerFactory
-
public final class CuiLoggerFactory extends Object
Class provide factory method for CuiLogger instance
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CuiLoggergetLogger()Automatic determine the caller class.static CuiLoggergetLogger(Class<?> clazz)Create logger and use the hand-over class name as logger namestatic CuiLoggergetLogger(String className)Create logger and use the hand-over class name as logger name
-
-
-
Method Detail
-
getLogger
public static CuiLogger getLogger()
Automatic determine the caller class.- Returns:
CuiLogger- Throws:
IllegalStateException- if caller couldn't be detected
-
getLogger
public static CuiLogger getLogger(String className)
Create logger and use the hand-over class name as logger name- Parameters:
className- must not be null- Returns:
CuiLogger
-
-