|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlogging.Logger
public class Logger
An object of this class can log events on a file.
Constructor Summary | |
---|---|
Logger(java.lang.String fileName)
Default constructor |
Method Summary | |
---|---|
void |
closeStreams()
This method is used to close all the input/output streams |
java.lang.String |
getFileName()
|
boolean |
isTextMode()
|
void |
log(java.lang.String eventString)
|
void |
logEvent(Event ev)
|
void |
printAllEvents()
This method prints the events stored in the file that this logger is attached to on the standard output. |
void |
setTextMode(boolean textMode)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Logger(java.lang.String fileName)
fileName
- is the name of the file that the Logger object will store events on.Method Detail |
---|
public java.lang.String getFileName()
public boolean isTextMode()
public void setTextMode(boolean textMode)
public void log(java.lang.String eventString)
eventString
- it is event Descriptionpublic void logEvent(Event ev)
ev
- is the event object to be loggedpublic void printAllEvents()
public void closeStreams()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |