|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.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)
ILogPublisher
Publish 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 ILogPublisher
publish
in class LogPublisher
record
- description of the log event. A null record is
silently ignored and is not publishedpublic void publish(java.util.logging.LogRecord record, java.lang.String formattedMsg)
publish
in class LogPublisher
public void flush()
ILogPublisher
Flush any buffered output.
flush
in interface ILogPublisher
flush
in class LogPublisher
public void close() throws java.lang.SecurityException
ILogPublisher
Close 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 ILogPublisher
close
in class LogPublisher
java.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 |