Package edu.rit.util

Interface Logger

All Known Implementing Classes:
PrintStreamLogger

public interface Logger
Interface Logger specifies the interface for an object that logs messages.
Version:
16-Apr-2008
Author:
Alan Kaminsky
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log(long date, String msg)
    Log the given date and message.
    void
    log(long date, String msg, Throwable exc)
    Log the given date, message, and exception.
    void
    log(long date, Throwable exc)
    Log the given date and exception.
    void
    log(String msg)
    Log the given message.
    void
    log(String msg, Throwable exc)
    Log the given message and exception.
    void
    Log the given exception.
  • Method Details

    • log

      void log(String msg)
      Log the given message.
      Parameters:
      msg - Message.
    • log

      void log(Throwable exc)
      Log the given exception.
      Parameters:
      exc - Exception.
    • log

      void log(String msg, Throwable exc)
      Log the given message and exception.
      Parameters:
      msg - Message.
      exc - Exception.
    • log

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

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

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