|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.persistence.SpotCheckLogger
public class SpotCheckLogger
Logs failed spot checks to the spot check log file.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_LOG_DIR
|
static java.lang.String |
DEFAULT_LOG_PATH
|
private static java.lang.String |
LOG_TIMESTAMP_FORMAT
|
private java.io.File |
logFile
|
private java.io.FileOutputStream |
logFileStream
|
private static SpotCheckLogger |
logger
|
private java.io.PrintStream |
logStream
|
private static java.text.SimpleDateFormat |
timestampFormat
|
Constructor Summary | |
---|---|
private |
SpotCheckLogger()
Private constructor. |
Method Summary | |
---|---|
static void |
initialize()
Opens the default log file for appending and initializes the streams. |
static void |
initialize(java.lang.String logPath)
Opens the log file for appending and initializes the streams. |
static void |
print(java.lang.String str)
Writes the given string to the log file. |
static void |
println(java.lang.String str)
Writes the given string to the log file, then writes a new line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static SpotCheckLogger logger
public static final java.lang.String DEFAULT_LOG_DIR
public static final java.lang.String DEFAULT_LOG_PATH
private static final java.lang.String LOG_TIMESTAMP_FORMAT
private static java.text.SimpleDateFormat timestampFormat
private java.io.File logFile
private java.io.FileOutputStream logFileStream
private java.io.PrintStream logStream
Constructor Detail |
---|
private SpotCheckLogger()
Method Detail |
---|
public static void initialize() throws InvalidLogPathException
InvalidLogPathException
public static void initialize(java.lang.String logPath) throws InvalidLogPathException
logPath
- The path to the log file.
InvalidLogPathException
public static void print(java.lang.String str)
str
- The string to write.public static void println(java.lang.String str)
str
- The string to write.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |