edu.rit.util
Class PrintStreamLogger
- java.lang.Object
-
- edu.rit.util.PrintStreamLogger
-
-
Constructor Summary
Constructors Constructor and Description PrintStreamLogger()Construct a new print stream logger that logs to System.err.PrintStreamLogger(java.io.PrintStream out)Construct a new print stream logger that logs to the given print stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidlog(long date, java.lang.String msg)Log the given date and message.voidlog(long date, java.lang.String msg, java.lang.Throwable exc)Log the given date, message, and exception.voidlog(long date, java.lang.Throwable exc)Log the given date and exception.voidlog(java.lang.String msg)Log the given message.voidlog(java.lang.String msg, java.lang.Throwable exc)Log the given message and exception.voidlog(java.lang.Throwable exc)Log the given exception.
-
-
-
Constructor Detail
-
PrintStreamLogger
public PrintStreamLogger()
Construct a new print stream logger that logs to System.err.
-
PrintStreamLogger
public PrintStreamLogger(java.io.PrintStream out)
Construct a new print stream logger that logs to the given print stream.- Parameters:
out- Print stream.- Throws:
java.lang.NullPointerException- (unchecked exception) Thrown if out is null.
-
-
Method Detail
-
log
public void log(java.lang.String msg)
Log the given message.
-
log
public void log(java.lang.Throwable exc)
Log the given exception.
-
log
public void log(java.lang.String msg, java.lang.Throwable exc)Log the given message and exception.
-
log
public void log(long date, java.lang.String msg)Log the given date and message.
-
log
public void log(long date, java.lang.Throwable exc)Log the given date and exception.
-
-
DMelt 3.0 © DataMelt by jWork.ORG