|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.utils.logging.LogPublisher
cz.cuni.amis.pogamut.base.utils.logging.NetworkLogPublisher
public class NetworkLogPublisher

Publisher that is used by AbstractAgentLogger that passes all the logs into NetworkLogManager.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.base.utils.logging.LogPublisher |
|---|
LogPublisher.ConsolePublisher, LogPublisher.FilePublisher |
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.base.utils.logging.LogPublisher |
|---|
formatter |
| Method Summary | |
|---|---|
void |
close()
From JavaDoc API: |
void |
flush()
From JavaDoc API: |
void |
publish(java.util.logging.LogRecord record)
From JavaDoc API: |
void |
publish(java.util.logging.LogRecord record,
java.lang.String formattedMsg)
|
| Methods inherited from class cz.cuni.amis.pogamut.base.utils.logging.LogPublisher |
|---|
getFormatter, setFormatter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void publish(java.util.logging.LogRecord record)
ILogPublisherPublish a LogRecord.
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
The Handler is responsible for formatting the message, when and if necessary. The formatting should include localization.
publish in interface ILogPublisherpublish in class LogPublisherrecord - description of the log event. A null record is
silently ignored and is not published
public void publish(java.util.logging.LogRecord record,
java.lang.String formattedMsg)
publish in class LogPublisherpublic void flush()
ILogPublisherFlush any buffered output.
flush in interface ILogPublisherflush in class LogPublisher
public void close()
throws java.lang.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 LogPublisherjava.lang.SecurityException - if a security manager exists and if
the caller does not have LoggingPermission("control").
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||