|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.arakhne.logging.AbstractLogger
org.arakhne.logging.SunLogger
public class SunLogger
This class provides the concrete implementation of the Logger
interface. This impl is based on the Sun's Logging Facade for Java
Logger| Constructor Summary | |
|---|---|
SunLogger()
Create an unamed logger based of Sun's logging system. |
|
SunLogger(String name)
Create a named logger based of Sun's logging system. |
|
| Method Summary | |
|---|---|
String |
getName()
|
void |
log(Object source,
LogLevel level,
String msg)
|
void |
log(Object source,
LogLevel level,
String msg,
Throwable exception)
|
void |
setLogLevel(LogLevel level)
Set the minimum log level. |
protected Level |
toSunLevel(LogLevel level)
Translate a logging level into the same thing for Sun's logging system. |
| Methods inherited from class org.arakhne.logging.AbstractLogger |
|---|
addLoggerEventListener, debug, debug, error, error, fireLoggerEvent, fireLoggerEvent, getLogLevel, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isLoggableFor, isWarnEnabled, removeLoggerEventListener, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SunLogger()
public SunLogger(String name)
name - is the name of the logger.| Method Detail |
|---|
protected Level toSunLevel(LogLevel level)
level - is the level to translate
public void log(Object source,
LogLevel level,
String msg)
log in interface Loggerlog in class AbstractLoggersource - - the object which send this loglevel - - the log levelmsg - - the message to log
public void log(Object source,
LogLevel level,
String msg,
Throwable exception)
source - - the object which send this loglevel - - the log levelmsg - - the message to logexception - - the exception cause of the log messagepublic String getName()
public void setLogLevel(LogLevel level)
setLogLevel in interface LoggersetLogLevel in class AbstractLoggerlevel -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||