org.eclipse.core.runtime.internal.adaptor
Class EclipseLogWriter
java.lang.Object
org.eclipse.core.runtime.internal.adaptor.EclipseLogWriter
- All Implemented Interfaces:
- EventListener, LogFilter, SynchronousLogListener, LogListener
public class EclipseLogWriter
- extends Object
- implements SynchronousLogListener, LogFilter
|
Constructor Summary |
EclipseLogWriter(File outFile,
String loggerName,
boolean enabled)
Constructs an EclipseLog which uses the specified File to log messages to |
EclipseLogWriter(Writer writer,
String loggerName,
boolean enabled)
Constructs an EclipseLog which uses the specified Writer to log messages to |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EclipseLogWriter
public EclipseLogWriter(File outFile,
String loggerName,
boolean enabled)
- Constructs an EclipseLog which uses the specified File to log messages to
- Parameters:
outFile - a file to log messages to
EclipseLogWriter
public EclipseLogWriter(Writer writer,
String loggerName,
boolean enabled)
- Constructs an EclipseLog which uses the specified Writer to log messages to
- Parameters:
writer - a writer to log messages to
close
public void close()
setWriter
public void setWriter(Writer newWriter,
boolean append)
setFile
public void setFile(File newFile,
boolean append)
throws IOException
- Throws:
IOException
getFile
public File getFile()
setConsoleLog
public void setConsoleLog(boolean consoleLog)
isLoggable
public boolean isLoggable(Bundle bundle,
String loggableName,
int loggableLevel)
- Specified by:
isLoggable in interface LogFilter
- Parameters:
bundle - The logging bundleloggableName - The name of the LoggerloggableLevel - The log level or severity- See Also:
LogEntry,
Logger,
ExtendedLogReaderService.addLogListener(org.osgi.service.log.LogListener, LogFilter)
logged
public void logged(LogEntry entry)
- Description copied from interface:
LogListener
- Listener method called for each LogEntry object created.
As with all event listeners, this method should return to its caller as
soon as possible.
- Specified by:
logged in interface LogListener
- Parameters:
entry - A LogEntry object containing log information.- See Also:
LogEntry
getLoggerName
public String getLoggerName()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.