public final class Log
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addFileOutput(java.lang.String fileName)
Adds the file output to the log.
|
static void |
closeFileHandlers()
Closes all file handlers which are associated with the Retrascope root logger.
|
static java.util.logging.Logger |
getLogger()
Returns the root logger.
|
static java.util.logging.Logger |
getLogger(java.lang.Class<?> component)
Returns the component logger.
|
static void |
printDebug(java.lang.String message)
Prints the specified message at the debug logging level.
|
static void |
printError(java.lang.String message)
Prints the specified message at the error logging level.
|
static void |
printInfo(java.lang.Object obj)
Prints the object's string representation at the info logging level.
|
static void |
printInfo(java.lang.String message)
Prints the specified message at the info logging level.
|
static void |
printWarn(java.lang.String message)
Prints the specified message at the warning logging level.
|
static void |
setLevel(java.util.logging.Level level)
Sets the log level.
|
public static java.util.logging.Logger getLogger()
public static java.util.logging.Logger getLogger(java.lang.Class<?> component)
component
- Component class.public static void printDebug(java.lang.String message)
message
- Message to be printed.LogLevel
public static void printError(java.lang.String message)
message
- Message to be printed.LogLevel
public static void printInfo(java.lang.String message)
message
- Message to be printed.LogLevel
public static void printInfo(java.lang.Object obj)
obj
- The object to be printed.public static void printWarn(java.lang.String message)
message
- Message to be printed.LogLevel
public static void setLevel(java.util.logging.Level level)
level
- Log level to be set.public static void addFileOutput(java.lang.String fileName)
fileName
- Name of the file to log to.public static void closeFileHandlers()