Class FileLogger
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
rs.edu.raf.dsw.rudok.app.logger.console.file.FileLogger
public class FileLogger extends ConsoleLogger
File logger
Logs to the console and to system file.-
Constructor Summary
Constructors Constructor Description FileLogger()
-
Method Summary
Modifier and Type Method Description 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.logger.console.ConsoleLogger
getLine
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
-
FileLogger
public FileLogger()
-
-
Method Details
-
log
Description copied from class:ILogger
Logs the message of the givenIMessageGenerator.Type
.- Overrides:
log
in classConsoleLogger
- Parameters:
content
- Message content.type
- Message type:IMessageGenerator.Type
.timestamp
- Timestamp.
-