edu.umbc.cs.daml4jess
Interface D4jLogger

All Known Implementing Classes:
D4jRdf2Jess, Daml4Jess

public interface D4jLogger

Daml4Jess logger interface. Declare log levels and log methods.


Field Summary
static int LOG_LEVEL_BRIEF
          The constant for brief informaional level log output.
static int LOG_LEVEL_ERR
          The constant for error only log level.
static int LOG_LEVEL_INFO
          The constant for detailed informaion level log output.
static int LOG_LEVEL_VERBOSE
          The constant for the most verbose level log output.
static int LOG_LEVEL_WARN
          The constant for warning level log output.
static java.lang.String STDERR
          Reserved output file name for standard error output.
static java.lang.String STDIN
          Reserved input file name for standard input.
static java.lang.String STDOUT
          Reserved output file name for standard output.
 
Method Summary
 void log(java.lang.String msg, int level)
          Log the given message.
 void log(java.lang.String msg, java.lang.Throwable t, int level)
          Log the given message and the exception.
 

Field Detail

STDIN

public static final java.lang.String STDIN
Reserved input file name for standard input.

See Also:
Constant Field Values

STDOUT

public static final java.lang.String STDOUT
Reserved output file name for standard output.

See Also:
Constant Field Values

STDERR

public static final java.lang.String STDERR
Reserved output file name for standard error output.

See Also:
Constant Field Values

LOG_LEVEL_ERR

public static final int LOG_LEVEL_ERR
The constant for error only log level.

See Also:
Constant Field Values

LOG_LEVEL_WARN

public static final int LOG_LEVEL_WARN
The constant for warning level log output.

See Also:
Constant Field Values

LOG_LEVEL_BRIEF

public static final int LOG_LEVEL_BRIEF
The constant for brief informaional level log output.

See Also:
Constant Field Values

LOG_LEVEL_INFO

public static final int LOG_LEVEL_INFO
The constant for detailed informaion level log output.

See Also:
Constant Field Values

LOG_LEVEL_VERBOSE

public static final int LOG_LEVEL_VERBOSE
The constant for the most verbose level log output.

See Also:
Constant Field Values
Method Detail

log

public void log(java.lang.String msg,
                int level)
Log the given message. The message will be logged if and only if the given level is greater than or equal to the current log level.

Parameters:
msg - the message to be logged.
level - the log level of this message.

log

public void log(java.lang.String msg,
                java.lang.Throwable t,
                int level)
Log the given message and the exception. The message and exception will be logged if and only if the given level is greater than or equal to the current log level.

Parameters:
msg - the message to be logged, can be null.
t - a the throwable to be logged, can be null.
level - the log level of this message.