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 TypeMethodDescriptionvoidLog the given date and message.voidLog the given date, message, and exception.voidLog the given date and exception.voidLog the given message.voidLog the given message and exception.voidLog 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 ifoutis 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.
-