public class Logging extends Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
Logging.LoggerIf |
An interface for
Logger . |
Modifier and Type | Field | Description |
---|---|---|
static boolean |
DEBUG |
Constructor | Description |
---|---|
Logging() |
Modifier and Type | Method | Description |
---|---|---|
static void |
alignLevel(Logging.LoggerIf l) |
Align log-level of given logger to the root logger's level.
|
static void |
alignLevel(Logging.LoggerIf l,
Level level) |
Align log-level of given logger and all its handlers to the given level.
|
static String |
getCanonicalName(Level level) |
|
static Logging.LoggerIf |
getLogger() |
Returns the root package logger.
|
static Logging.LoggerIf |
getLogger(Class<?> clazz) |
Returns the demanded logger, while aligning its log-level to the root logger's level.
|
static Logging.LoggerIf |
getLogger(String packageName,
String simpleClassName) |
Returns the demanded logger, while aligning its log-level to the root logger's level.
|
public static Logging.LoggerIf getLogger()
public static Logging.LoggerIf getLogger(Class<?> clazz)
public static Logging.LoggerIf getLogger(String packageName, String simpleClassName)
public static void alignLevel(Logging.LoggerIf l)
public static void alignLevel(Logging.LoggerIf l, Level level)