Package edu.rit.util
Class PrintStreamLogger
java.lang.Object
edu.rit.util.PrintStreamLogger
- All Implemented Interfaces:
Logger
Class PrintStreamLogger provides an object that logs messages to a print
stream.
- Version:
- 16-Apr-2008
- Author:
- Alan Kaminsky
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new print stream logger that logs toSystem.err
.Construct a new print stream logger that logs to the given print stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log the given date and message.void
Log the given date, message, and exception.void
Log the given date and exception.void
Log the given message.void
Log the given message and exception.void
Log the given exception.
-
Constructor Details
-
PrintStreamLogger
public PrintStreamLogger()Construct a new print stream logger that logs toSystem.err
. -
PrintStreamLogger
Construct a new print stream logger that logs to the given print stream.- Parameters:
out
- Print stream.- Throws:
NullPointerException
- (unchecked exception) Thrown ifout
is null.
-
-
Method Details
-
log
Log the given message. -
log
Log the given exception. Log the given exception. -
log
Log the given message and exception. Log the given message and exception. -
log
Log the given date and message. -
log
Log the given date and exception. Log the given date and exception. -
log
Log the given date, message, and exception. Log the given date, message, and exception.
-