|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoj.util.Logger
public class Logger
Basic logging class with customisable formatting.
Constructor Summary | |
---|---|
Logger(java.lang.String logfile)
Open log file for appending log entries. |
Method Summary | |
---|---|
java.lang.String |
formatEntry(java.lang.String entry)
Formats a log entry. |
java.lang.String |
logEntry(java.lang.String entry)
Writes the formatted log entry to the set log file and it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Logger(java.lang.String logfile)
logfile
- name of the log file to write entries toMethod Detail |
---|
public java.lang.String formatEntry(java.lang.String entry)
entry
- log entry to format
public java.lang.String logEntry(java.lang.String entry)
entry
- log entry to enter into log file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |