com.opensymphony.provider
Interface LogProvider

All Superinterfaces:
Provider
All Known Implementing Classes:
DefaultLogProvider, FullLogProvider, Log4JProvider, NullLogProvider

public interface LogProvider
extends Provider

Interface to plug in provider for providing logging.

Version:
$Revision: 1.1.1.1 $
Author:
Joe Walnes

Field Summary
static int DEBUG
           
static int ERROR
           
static int FATAL
           
static int INFO
           
static int WARN
           
 
Method Summary
 Object getContext(String name)
          Get object representing context of logger.
 boolean isEnabled(Object context, int level)
          Check whether logging is enabled for particular context/level combination.
 void log(Object context, int level, Object msg, Throwable throwable)
          Log a message.
 
Methods inherited from interface com.opensymphony.provider.Provider
destroy, init
 

Field Detail

DEBUG

static final int DEBUG
See Also:
Constant Field Values

ERROR

static final int ERROR
See Also:
Constant Field Values

FATAL

static final int FATAL
See Also:
Constant Field Values

INFO

static final int INFO
See Also:
Constant Field Values

WARN

static final int WARN
See Also:
Constant Field Values
Method Detail

getContext

Object getContext(String name)
Get object representing context of logger. (For example with Log4J, Category). This object is not used anywhere, except when it is passed back to the log() or isEnabled() methods.


isEnabled

boolean isEnabled(Object context,
                  int level)
Check whether logging is enabled for particular context/level combination.


log

void log(Object context,
         int level,
         Object msg,
         Throwable throwable)
Log a message.


OSCore Project Page