public interface FrameworkLog
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_PERFORMANCE
A service lookup constant (value "performance") indicating an
implementation of the logging service that logs performance events.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the FrameworkLog.
|
File |
getFile()
Returns the log File if it is set, otherwise null is returned.
|
void |
log(FrameworkEvent frameworkEvent)
Logs the information from a FrameworkEvent to the FrameworkLog.
|
void |
log(FrameworkLogEntry logEntry)
Logs the FrameworkLogEntry to the FrameworkLog
|
void |
setConsoleLog(boolean consoleLog)
Sets the console log option.
|
void |
setFile(File newFile,
boolean append)
Sets the current File used to log messages to a FileWriter
using the specified File.
|
void |
setWriter(Writer newWriter,
boolean append)
Sets the current Writer used to log messages to the specified
newWriter.
|
static final String SERVICE_PERFORMANCE
"true"
in order to
obtain a performance log.void log(FrameworkEvent frameworkEvent)
frameworkEvent
- The FrameworkEvent to log.void log(FrameworkLogEntry logEntry)
logEntry
- The entry to log.void setWriter(Writer newWriter, boolean append)
newWriter
- The Writer to use for logging messages.append
- Indicates whether the content of the current Writer
used for logging messages should be appended to the end of the new
Writer.void setFile(File newFile, boolean append) throws IOException
newFile
- The File to create a new FileWriter which will be
used for logging messages.append
- Indicates whether the content of the current Writer
used for logging messages should be appended to the end of the new
File.IOException
- if any problem occurs while constructing a
FileWriter from the newFile. If this exception is thrown the
FrameworkLog will not be affected and will continue to use the
current Writer to log messages.File getFile()
void setConsoleLog(boolean consoleLog)
consoleLog
- indicates whether to log to System.outvoid close()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.