|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.logger.log.ForeignLogger
public class ForeignLogger
A foreign logger.
| Constructor Summary | |
|---|---|
ForeignLogger(String name,
MBeanServer server)
Constructs a named logger for the specified MBean server. |
|
| Method Summary | |
|---|---|
int |
getLevel()
Gets the log level. |
String |
getLoggerName()
Gets the logger name. |
MBeanServer |
getMBeanServer()
Gets the MBean server. |
boolean |
isLog(int level)
Checks whether the specified log level is enabled. |
void |
log(int level,
Object msg)
Logs a message. |
void |
log(int level,
Object msg,
Throwable cause)
Logs a message with a throwable. |
void |
log(int level,
String msg,
Object arg)
Logs the specified message with an argument. |
void |
log(int level,
String msg,
Object arg,
Throwable cause)
Logs the specified message with an argument and throwable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForeignLogger(String name,
MBeanServer server)
name - the logger name.server - the MBean server.| Method Detail |
|---|
public void log(int level,
Object msg)
log - the log.level - the level.msg - the message.
public void log(int level,
String msg,
Object arg)
level - the level.msg - the message.arg - the argument.
public void log(int level,
Object msg,
Throwable cause)
log - the log.level - the level.msg - the message.cause - the cause.
public void log(int level,
String msg,
Object arg,
Throwable cause)
level - the level.msg - the message.arg - the argument.cause - the cause.public boolean isLog(int level)
level - the level.
public int getLevel()
public String getLoggerName()
public MBeanServer getMBeanServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||