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 void |
debug(java.lang.String format,
java.lang.Object... args)
Prints the specified objects in the specified format at the debug logging level.
|
static void |
error(java.lang.String format,
java.lang.Object... args)
Prints the specified objects in the specified format at the error logging level.
|
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 |
info(java.lang.String format,
java.lang.Object... args)
Prints the specified objects in the specified format at the info logging level.
|
static void |
setLevel(java.util.logging.Level level)
Sets the log level.
|
static void |
warn(java.lang.String format,
java.lang.Object... args)
Prints the specified objects in the specified format at the warning logging 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 debug(java.lang.String format, java.lang.Object... args)
format
- The message format.args
- The arguments to be printed.LogLevel
public static void error(java.lang.String format, java.lang.Object... args)
format
- The message format.args
- The arguments to be printed.LogLevel
public static void info(java.lang.String format, java.lang.Object... args)
format
- The message format.args
- The arguments to be printed.LogLevel
public static void warn(java.lang.String format, java.lang.Object... args)
format
- The message format.args
- The arguments 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()