Package rs.edu.raf.dsw.rudok.app.logger
Class ILogger
java.lang.Object
rs.edu.raf.dsw.rudok.app.observer.IObserver
rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
rs.edu.raf.dsw.rudok.app.observer.IPublisher
rs.edu.raf.dsw.rudok.app.logger.ILogger
- Direct Known Subclasses:
ConsoleLogger
public abstract class ILogger extends IPublisher
Logger
Logs incoming messages.-
Constructor Summary
Constructors Constructor Description ILogger()
-
Method Summary
Modifier and Type Method Description abstract void
log(String content, IMessageGenerator.Type type, String timestamp)
Logs the message of the givenIMessageGenerator.Type
.void
receive(Object message)
Watches for messages sent byIMessageGenerator
and logs them.Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisher
addObserver, getObservers, publish, removeObserver, setObservers
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
addObserverGlobal, getObserversGlobal, removeObserverGlobal
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IObserver
addPublisher, getPublishers, removePublisher, setPublishers
-
Constructor Details
-
ILogger
public ILogger()
-
-
Method Details
-
log
Logs the message of the givenIMessageGenerator.Type
.- Parameters:
content
- Message content.type
- Message type:IMessageGenerator.Type
.timestamp
- Timestamp.
-
receive
Watches for messages sent byIMessageGenerator
and logs them.
-