Class ConsoleLogger
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
rs.edu.raf.dsw.rudok.app.logger.console.ConsoleLogger
- Direct Known Subclasses:
FileLogger
public class ConsoleLogger extends ILogger
Console logger
Logs to the console.-
Constructor Summary
Constructors Constructor Description ConsoleLogger()
-
Method Summary
Modifier and Type Method Description String
getLine()
Returns the last logged line.void
log(String content, IMessageGenerator.Type type, String timestamp)
Logs the message of the givenIMessageGenerator.Type
.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
-
ConsoleLogger
public ConsoleLogger()
-
-
Method Details
-
log
Description copied from class:ILogger
Logs the message of the givenIMessageGenerator.Type
.- Specified by:
log
in classILogger
- Parameters:
content
- Message content.type
- Message type:IMessageGenerator.Type
.timestamp
- Timestamp.
-
getLine
Returns the last logged line.- Returns:
- Last logged line.
-