public class ControlPanelLog extends Object
Constructor and Description |
---|
ControlPanelLog() |
Modifier and Type | Method and Description |
---|---|
static void |
closeAndDeleteLogFile()
Closes the log file and deletes it.
|
static File |
getLogFile()
Gets the name of the log file.
|
static void |
initLogFileHandler(File file)
Creates a new file handler for writing log messages to the file indicated by
file . |
static void |
initPackage(String packageName)
Writes messages under a given package in the file handler defined when calling initLogFileHandler.
|
static boolean |
isInitialized()
Indicates whether the log file has been initialized.
|
public ControlPanelLog()
public static void initLogFileHandler(File file) throws IOException
file
.file
- log file to which log messages will be writtenIOException
- if something goes wrongpublic static void initPackage(String packageName) throws IOException
packageName
- the package name.IOException
- if something goes wrongpublic static File getLogFile()
public static boolean isInitialized()
public static void closeAndDeleteLogFile()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.