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: 5 $
- Author:
- Joe Walnes
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
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.
|