|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Logger
org.objectweb.util.monolog.wrapper.javaLog.Logger
Field Summary | |
protected java.util.logging.Logger |
inner
|
Fields inherited from class java.util.logging.Logger |
global |
Fields inherited from interface org.objectweb.util.monolog.api.Handler |
APPEND_MODE_ATTRIBUTE, CONSOLE_HANDLER_TYPE, FILE_HANDLER_TYPE, FILE_NUMBER_ATTRIBUTE, GENERIC_HANDLER_TYPE, LOGGER_HANDLER_TYPE, MAX_SIZE_ATTRIBUTE, OUTPUT_ATTRIBUTE, PATTERN_ATTRIBUTE, ROLLING_FILE_HANDLER_TYPE |
Constructor Summary | |
protected |
Logger(java.util.logging.Logger inner)
|
protected |
Logger(java.lang.String name,
java.lang.String resName)
|
Method Summary | |
void |
addHandler(java.util.logging.Handler handler)
|
void |
addHandler(Handler h)
A TopicalLogger manages a list of Handler instances. |
void |
addTopic(java.lang.String topic)
This method allows adding a topic to a TopicalLogger. |
boolean |
getAdditivity()
It retrieves the additivity flag for this logger instance. |
java.lang.Object |
getAttribute(java.lang.String name)
It retrieves the value of an attribute value of the handler. |
java.lang.String[] |
getAttributeNames()
It retrieves the attributes of the handler |
int |
getCurrentIntLevel()
Returns the current level value under the integer format |
Level |
getCurrentLevel()
Returns the current level value under the Level format |
Handler[] |
getHandler()
Get the Handlers associated with this logger. |
Handler |
getHandler(java.lang.String hn)
It returns the handler which the name is equals to the parameter |
java.lang.String[] |
getTopic()
This method allows getting a topic list of this TopicalLogger. |
java.util.Enumeration |
getTopics()
This method allows getting a topic list of this TopicalLogger. |
byte |
getType()
It retrieves the Handler type |
boolean |
isLoggable(int l)
Check if a message of the given level would actually be logged by this logger. |
boolean |
isLoggable(Level l)
Check if a message of the given level would actually be logged by this logger. |
boolean |
isOn()
Check if this logger is enabled. |
void |
log(int l,
java.lang.Object o)
Log a message, with no arguments. |
void |
log(int level,
java.lang.Object o,
java.lang.Object location,
java.lang.Object method)
Log a message, with a location and method arguments. |
void |
log(int l,
java.lang.Object o,
java.lang.Throwable t)
Log a message, with a throwable arguments which can represent an error or a context.. |
void |
log(int level,
java.lang.Object o,
java.lang.Throwable t,
java.lang.Object location,
java.lang.Object method)
Log a message, with a location, method and throwable arguments. |
void |
log(Level l,
java.lang.Object o)
Log a message, with no arguments. |
void |
log(Level l,
java.lang.Object o,
java.lang.Object location,
java.lang.Object method)
Log a message, with a location and method arguments. |
void |
log(Level l,
java.lang.Object o,
java.lang.Throwable t)
Log a message, with a throwable arguments which can represent an error or a context.. |
void |
log(Level l,
java.lang.Object o,
java.lang.Throwable t,
java.lang.Object location,
java.lang.Object method)
Log a message, with a location, method and throwable arguments. |
void |
removeAllHandlers()
A TopicalLogger manages a list of Handler instances. |
void |
removeHandler(Handler h)
A TopicalLogger manages a list of Handler instances. |
void |
removeTopic(java.lang.String topic)
This method allows removing a topic to a TopicalLogger. |
void |
setAdditivity(boolean a)
It assigns the additivity flag for this logger instance. |
java.lang.Object |
setAttribute(java.lang.String name,
java.lang.Object value)
It assigns an attributte to the handler. |
void |
setIntLevel(int level)
Permits to set the level with an integer value |
void |
setLevel(Level l)
Permits to set the level with a Level instance. |
void |
setName(java.lang.String name)
It assigns the name of the handler |
void |
turnOff()
Disables this logger |
void |
turnOn()
Enables this logger |
Methods inherited from class java.util.logging.Logger |
config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.util.monolog.api.Handler |
getName |
Field Detail |
protected java.util.logging.Logger inner
Constructor Detail |
protected Logger(java.util.logging.Logger inner)
protected Logger(java.lang.String name, java.lang.String resName)
Method Detail |
public void addHandler(java.util.logging.Handler handler)
public void setName(java.lang.String name)
setName
in interface Handler
public byte getType()
getType
in interface Handler
public java.lang.String[] getAttributeNames()
getAttributeNames
in interface Handler
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface Handler
name
- is an attribute namepublic java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface Handler
name
- is the attribute namevalue
- is the attribute value
public void addHandler(Handler h) throws java.lang.Exception
addHandler
in interface TopicalLogger
java.lang.Exception
public Handler getHandler(java.lang.String hn)
getHandler
in interface TopicalLogger
hn
- is the handler name
public Handler[] getHandler()
getHandler
in interface TopicalLogger
public void removeHandler(Handler h) throws java.lang.Exception
removeHandler
in interface TopicalLogger
java.lang.Exception
public void removeAllHandlers() throws java.lang.Exception
removeAllHandlers
in interface TopicalLogger
java.lang.Exception
public void setAdditivity(boolean a)
setAdditivity
in interface TopicalLogger
public boolean getAdditivity()
getAdditivity
in interface TopicalLogger
public void addTopic(java.lang.String topic) throws java.lang.Exception
addTopic
in interface TopicalLogger
java.lang.Exception
public java.lang.String[] getTopic()
getTopic
in interface TopicalLogger
public java.util.Enumeration getTopics()
getTopics
in interface TopicalLogger
public void removeTopic(java.lang.String topic) throws java.lang.Exception
removeTopic
in interface TopicalLogger
java.lang.Exception
public void setIntLevel(int level)
Logger
setIntLevel
in interface Logger
public void setLevel(Level l)
Logger
setLevel
in interface Logger
public int getCurrentIntLevel()
Logger
getCurrentIntLevel
in interface Logger
public Level getCurrentLevel()
Logger
getCurrentLevel
in interface Logger
public boolean isLoggable(int l)
Logger
isLoggable
in interface Logger
public boolean isLoggable(Level l)
Logger
isLoggable
in interface Logger
public boolean isOn()
Logger
isOn
in interface Logger
public void log(int l, java.lang.Object o)
Logger
log
in interface Logger
public void log(Level l, java.lang.Object o)
Logger
log
in interface Logger
public void log(int l, java.lang.Object o, java.lang.Throwable t)
Logger
log
in interface Logger
public void log(Level l, java.lang.Object o, java.lang.Throwable t)
Logger
log
in interface Logger
public void log(int level, java.lang.Object o, java.lang.Object location, java.lang.Object method)
Logger
log
in interface Logger
public void log(Level l, java.lang.Object o, java.lang.Object location, java.lang.Object method)
Logger
log
in interface Logger
public void log(int level, java.lang.Object o, java.lang.Throwable t, java.lang.Object location, java.lang.Object method)
Logger
log
in interface Logger
public void log(Level l, java.lang.Object o, java.lang.Throwable t, java.lang.Object location, java.lang.Object method)
Logger
log
in interface Logger
public void turnOn()
Logger
turnOn
in interface Logger
public void turnOff()
Logger
turnOff
in interface Logger
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |