SmartFrog 3.10.000

org.smartfrog.sfcore.logging
Interface LogLevel

All Known Subinterfaces:
LogSF
All Known Implementing Classes:
LogImpl, LogImplAsyncWrapper, LogToFileImpl, LogToNothingImpl, LogToPrimImpl, LogToStreamsImpl

public interface LogLevel

A simple logging interface abstracting logging APIs based in Apache Jakarta logging.


Field Summary
static int LOG_LEVEL_ALL
          Enable all logging levels > 6
static int LOG_LEVEL_DEBUG
          "Debug" level logging = 2
static int LOG_LEVEL_ERROR
          "Error" level logging = 5
static int LOG_LEVEL_FATAL
          "Fatal" level logging = 6
static int LOG_LEVEL_IGNORE
          "IGNORE" level logging < 1
static int LOG_LEVEL_INFO
          "Info" level logging = 3
static int LOG_LEVEL_OFF
          Enable no logging levels
static int LOG_LEVEL_TRACE
          "Trace" level logging = 1
static int LOG_LEVEL_WARN
          "Warn" level logging = 4
 
Method Summary
 int getLevel()
           Get logging level.
 boolean isLevelEnabled(int logLevel)
          Is the given log level currently enabled?
 void setLevel(int currentLogLevel)
           Set logging level.
 

Field Detail

LOG_LEVEL_IGNORE

static final int LOG_LEVEL_IGNORE
"IGNORE" level logging < 1

See Also:
Constant Field Values

LOG_LEVEL_TRACE

static final int LOG_LEVEL_TRACE
"Trace" level logging = 1

See Also:
Constant Field Values

LOG_LEVEL_DEBUG

static final int LOG_LEVEL_DEBUG
"Debug" level logging = 2

See Also:
Constant Field Values

LOG_LEVEL_INFO

static final int LOG_LEVEL_INFO
"Info" level logging = 3

See Also:
Constant Field Values

LOG_LEVEL_WARN

static final int LOG_LEVEL_WARN
"Warn" level logging = 4

See Also:
Constant Field Values

LOG_LEVEL_ERROR

static final int LOG_LEVEL_ERROR
"Error" level logging = 5

See Also:
Constant Field Values

LOG_LEVEL_FATAL

static final int LOG_LEVEL_FATAL
"Fatal" level logging = 6

See Also:
Constant Field Values

LOG_LEVEL_ALL

static final int LOG_LEVEL_ALL
Enable all logging levels > 6

See Also:
Constant Field Values

LOG_LEVEL_OFF

static final int LOG_LEVEL_OFF
Enable no logging levels

See Also:
Constant Field Values
Method Detail

setLevel

void setLevel(int currentLogLevel)

Set logging level.

Parameters:
currentLogLevel - new logging level

getLevel

int getLevel()

Get logging level.

Returns:
int log level

isLevelEnabled

boolean isLevelEnabled(int logLevel)
Is the given log level currently enabled?

Parameters:
logLevel - is this level enabled?
Returns:
boolean if given log currently enabled

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP