|
jPOS 1.6.7 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.util.Log4JListener
public class Log4JListener
realm is used as the log4j Logger
and messages are by default logged with the DEBUG level. This can
be changed by calling setLevelLogListener,
LogEvent| Constructor Summary | |
|---|---|
Log4JListener()
Create a new Log4JListener with DEBUG level. |
|
| Method Summary | |
|---|---|
void |
close()
|
LogEvent |
log(LogEvent ev)
|
void |
setConfiguration(Configuration cfg)
Expects the following properties: config - Configuration file path priority - Log4J priority (debug, info, warn, error) watch - interval (in ms) to monitor XML config file for changes |
void |
setLevel(int level)
|
void |
setLevel(java.lang.String level)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log4JListener()
| Method Detail |
|---|
public void setLevel(int level)
public void setLevel(java.lang.String level)
public void close()
public void setConfiguration(Configuration cfg)
throws ConfigurationException
setConfiguration in interface Configurablecfg - Configuration object
ConfigurationExceptionpublic LogEvent log(LogEvent ev)
log in interface LogListener
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||