javatools.util
Interface Log

All Known Implementing Classes:
FileLog

public interface Log

An object that represents a log.


Field Summary
static int DEBUG
          An informational message for programmers eyes only.
static int ERROR
          A recoverable error condition.
static int INFO
          Informational message only to highlight an event of interest.
static java.lang.String[] names
          The names containing the kind of errors shown above.
static int SEVERE
          A fatal event which prevents the system or sub/system from continuing.
static int WARNING
          An unexpected benign event which indicates a possible future error.
 
Method Summary
 void debug(java.lang.String sID, java.lang.String sMessage)
          Puts a debug message in the log.
 void error(java.lang.String sID, java.lang.String sMessage)
          Puts an error message in the log.
 void info(java.lang.String sID, java.lang.String sMessage)
          Puts an info message in the log.
 void log(int severity, java.lang.String sID, java.lang.String sMessage)
          Puts a message in the log.
 void severe(java.lang.String sID, java.lang.String sMessage)
          Puts a severe error message in the log.
 void warning(java.lang.String sID, java.lang.String sMessage)
          Puts a warning message in the log.
 

Field Detail

DEBUG

public static final int DEBUG
An informational message for programmers eyes only.

See Also:
Constant Field Values

INFO

public static final int INFO
Informational message only to highlight an event of interest.

See Also:
Constant Field Values

WARNING

public static final int WARNING
An unexpected benign event which indicates a possible future error.

See Also:
Constant Field Values

ERROR

public static final int ERROR
A recoverable error condition.

See Also:
Constant Field Values

SEVERE

public static final int SEVERE
A fatal event which prevents the system or sub/system from continuing.

See Also:
Constant Field Values

names

public static final java.lang.String[] names
The names containing the kind of errors shown above.

Method Detail

log

public void log(int severity,
                java.lang.String sID,
                java.lang.String sMessage)
Puts a message in the log.

Parameters:
severity - The severity of the message.
sID - The ID of the message.
sMessage - The message to put.

debug

public void debug(java.lang.String sID,
                  java.lang.String sMessage)
Puts a debug message in the log.

Parameters:
sID - The ID of the message.
sMessage - The message to put.

info

public void info(java.lang.String sID,
                 java.lang.String sMessage)
Puts an info message in the log.

Parameters:
sID - The ID of the message.
sMessage - The message to put.

warning

public void warning(java.lang.String sID,
                    java.lang.String sMessage)
Puts a warning message in the log.

Parameters:
sID - The ID of the message.
sMessage - The message to put.

error

public void error(java.lang.String sID,
                  java.lang.String sMessage)
Puts an error message in the log.

Parameters:
sID - The ID of the message.
sMessage - The message to put.

severe

public void severe(java.lang.String sID,
                   java.lang.String sMessage)
Puts a severe error message in the log.

Parameters:
sID - The ID of the message.
sMessage - The message to put.