public final class Log
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addConsoleOutput()
Adds the console output to the log.
|
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 |
print(java.util.logging.Level logLevel,
java.lang.String message)
Prints the message with the specified logging level.
|
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.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 printWarn(java.lang.String message)
message
- Message to be printed.LogLevel
public static void print(java.util.logging.Level logLevel, java.lang.String message)
logLevel
- Logging level at which message is printed.message
- Message to be printed.public static void setLevel(java.util.logging.Level level)
level
- Log level to be set.public static void addConsoleOutput()
public static void addFileOutput(java.lang.String fileName)
fileName
- Name of the file to log to.public static void closeFileHandlers()