Documentation of 'edu.rit.util.PrintStreamLogger' Java class
PrintStreamLogger
edu.rit.util

Class PrintStreamLogger

  • All Implemented Interfaces:
    Logger


    public class PrintStreamLogger
    extends java.lang.Object
    implements Logger
    Class PrintStreamLogger provides an object that logs messages to a print stream.
    • 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
      void log(long date, java.lang.String msg)
      Log the given date and message.
      void log(long date, java.lang.String msg, java.lang.Throwable exc)
      Log the given date, message, and exception.
      void log(long date, java.lang.Throwable exc)
      Log the given date and exception.
      void log(java.lang.String msg)
      Log the given message.
      void log(java.lang.String msg, java.lang.Throwable exc)
      Log the given message and exception.
      void log(java.lang.Throwable exc)
      Log the given exception.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
        Specified by:
        log in interface Logger
        Parameters:
        msg - Message.
      • log

        public void log(java.lang.Throwable exc)
        Log the given exception.
        Specified by:
        log in interface Logger
        Parameters:
        exc - Exception.
      • log

        public void log(java.lang.String msg,
                        java.lang.Throwable exc)
        Log the given message and exception.
        Specified by:
        log in interface Logger
        Parameters:
        msg - Message.
        exc - Exception.
      • log

        public void log(long date,
                        java.lang.String msg)
        Log the given date and message.
        Specified by:
        log in interface Logger
        Parameters:
        date - Date and time in milliseconds since midnight 01-Jan-1970 UTC.
        msg - Message.
      • log

        public void log(long date,
                        java.lang.Throwable exc)
        Log the given date and exception.
        Specified by:
        log in interface Logger
        Parameters:
        date - Date and time in milliseconds since midnight 01-Jan-1970 UTC.
        exc - Exception.
      • log

        public void log(long date,
                        java.lang.String msg,
                        java.lang.Throwable exc)
        Log the given date, message, and exception.
        Specified by:
        log in interface Logger
        Parameters:
        date - Date and time in milliseconds since midnight 01-Jan-1970 UTC.
        msg - Message.
        exc - Exception.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.