php.java.bridge
Interface ILogger

All Known Implementing Classes:
ChainsawLogger, Logger, SimpleLog4jLogger, Util.Logger

public interface ILogger

The log interface for the PHP/Java Bridge log.

Author:
jostb
See Also:
FileLogger, ChainsawLogger, SimpleLog4jLogger

Field Summary
static int DEBUG
          debug log level
static int ERROR
          error log level
static int FATAL
          fatal log level
static int INFO
          info log level
 
Method Summary
 void log(int level, java.lang.String msg)
          Log a message.
 void printStackTrace(java.lang.Throwable t)
          Log a stack trace
 void warn(java.lang.String msg)
          Display a warning if logLevel >= 1
 

Field Detail

FATAL

static final int FATAL
fatal log level

See Also:
Constant Field Values

ERROR

static final int ERROR
error log level

See Also:
Constant Field Values

INFO

static final int INFO
info log level

See Also:
Constant Field Values

DEBUG

static final int DEBUG
debug log level

See Also:
Constant Field Values
Method Detail

printStackTrace

void printStackTrace(java.lang.Throwable t)
Log a stack trace

Parameters:
t - The Throwable

log

void log(int level,
         java.lang.String msg)
Log a message.

Parameters:
level - The log level 0: FATAL, 1:ERROR, 2: INFO, 3: DEBUG
msg - The message

warn

void warn(java.lang.String msg)
Display a warning if logLevel >= 1

Parameters:
msg - The warn message