public static class LogPublisher.ConsolePublisher extends LogPublisher
LogPublisher.ConsolePublisher, LogPublisher.FilePublisherformatter| Constructor and Description |
|---|
LogPublisher.ConsolePublisher() |
LogPublisher.ConsolePublisher(IAgentId name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
From JavaDoc API:
|
void |
flush()
From JavaDoc API:
|
void |
publish(LogRecord record,
String formattedMsg) |
getFormatter, publish, setFormatterpublic LogPublisher.ConsolePublisher()
public LogPublisher.ConsolePublisher(IAgentId name)
public void close()
throws SecurityException
ILogPublisherClose the Handler and free all associated resources.
The close method will perform a flush and then close the Handler. After close has been called this Handler should no longer be used. Method calls may either be silently ignored or may throw runtime exceptions.
close in interface ILogPublisherclose in class LogPublisherSecurityException - if a security manager exists and if
the caller does not have LoggingPermission("control").public void flush()
ILogPublisherFlush any buffered output.
flush in interface ILogPublisherflush in class LogPublisherpublic void publish(LogRecord record, String formattedMsg)
publish in class LogPublisherCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.