|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.objectweb.util.monolog.wrapper.log4jMini.MonologCategory
| Nested Class Summary | |
|---|---|
class |
MonologCategory.OwPriority
|
| Field Summary | |
|---|---|
protected org.apache.log4j.Category |
category
|
protected boolean |
enable
|
protected java.util.Hashtable |
handlers
|
protected MonologCategory.OwPriority |
interPriority
|
| Fields inherited from interface org.objectweb.util.monolog.api.Handler |
|---|
APPEND_MODE_ATTRIBUTE, BUFFER_ATTRIBUTE, CONSOLE_HANDLER_TYPE, FILE_HANDLER_TYPE, FILE_NUMBER_ATTRIBUTE, GENERIC_HANDLER_TYPE, JMX_HANDLER_TYPE, LEVEL_ATTRIBUTE, LOGGER_HANDLER_TYPE, MAX_SIZE_ATTRIBUTE, OUTPUT_ATTRIBUTE, PATTERN_ATTRIBUTE, ROLLING_FILE_HANDLER_TYPE |
| Constructor Summary | |
|---|---|
MonologCategory(org.apache.log4j.Category category)
|
|
| Method Summary | |
|---|---|
void |
addHandler(Handler h)
Add a handler in the Handler list of the topicalLogger |
void |
addTopic(java.lang.String topic)
Add a topic to the 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()
Return the current Level of the logger |
Level |
getCurrentLevel()
Returns the current level value under the Level format |
Handler[] |
getHandler()
It returns the list of the handler associated to this logger. |
Handler |
getHandler(java.lang.String hn)
It returns the handler which the name is equals to the parameter |
java.lang.String |
getName()
It retrieves the name of the handler |
java.lang.String[] |
getTopic()
This method allows getting a topic list of this TopicalLogger. |
java.util.Enumeration |
getTopics()
Returns the list of the different names of the topicalLogger |
java.lang.String |
getType()
It retrieves the Handler type |
boolean |
isLoggable(int level)
Check if the level parameter are not filtered by the logger |
boolean |
isLoggable(Level l)
Check if a message of the given level would actually be logged by this logger. |
boolean |
isOn()
Is the handler enabled |
void |
log(int level,
java.lang.Object o)
Log an object with a specific level. |
void |
log(int level,
java.lang.Object o,
java.lang.Object location,
java.lang.Object method)
Log an object and a trowable with a specific level. |
void |
log(int level,
java.lang.Object o,
java.lang.Throwable t)
Log an object and a trowable with a specific level. |
void |
log(int level,
java.lang.Object o,
java.lang.Throwable t,
java.lang.Object location,
java.lang.Object method)
Log an object and a trowable with a specific level. |
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)
Remove a handler from the Handler list of the topicalLogger |
void |
removeTopic(java.lang.String topic)
Remove a topic from the 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)
Set the current level of the logger |
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()
Disable the handler |
void |
turnOn()
Enable the handler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable handlers
protected boolean enable
protected org.apache.log4j.Category category
protected MonologCategory.OwPriority interPriority
| Constructor Detail |
public MonologCategory(org.apache.log4j.Category category)
| Method Detail |
public void setIntLevel(int level)
setIntLevel in interface Loggerpublic void setLevel(Level l)
Logger
setLevel in interface Loggerpublic int getCurrentIntLevel()
getCurrentIntLevel in interface Loggerpublic Level getCurrentLevel()
Logger
getCurrentLevel in interface Loggerpublic boolean isLoggable(int level)
isLoggable in interface Loggerpublic boolean isLoggable(Level l)
Logger
isLoggable in interface Loggerpublic boolean isOn()
isOn in interface Logger
public void log(int level,
java.lang.Object o)
log in interface Logger
public void log(Level l,
java.lang.Object o)
Logger
log in interface Logger
public void log(int level,
java.lang.Object o,
java.lang.Throwable t)
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)
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)
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 Loggerpublic void turnOn()
turnOn in interface Loggerpublic void turnOff()
turnOff in interface Loggerpublic Handler[] getHandler()
TopicalLogger
getHandler in interface TopicalLoggerpublic java.lang.String getName()
Handler
getName in interface Handlerpublic Handler getHandler(java.lang.String hn)
TopicalLogger
getHandler in interface TopicalLoggerpublic void setName(java.lang.String name)
Handler
setName in interface Handler
public void removeAllHandlers()
throws java.lang.Exception
TopicalLogger
removeAllHandlers in interface TopicalLoggerjava.lang.Exceptionpublic java.lang.String getType()
Handler
getType in interface Handlerpublic void setAdditivity(boolean a)
TopicalLogger
setAdditivity in interface TopicalLoggerpublic java.lang.String[] getAttributeNames()
Handler
getAttributeNames in interface Handlerpublic boolean getAdditivity()
TopicalLogger
getAdditivity in interface TopicalLoggerpublic java.lang.Object getAttribute(java.lang.String name)
Handler
getAttribute in interface Handlername - is an attribute namepublic java.lang.String[] getTopic()
TopicalLogger
getTopic in interface TopicalLogger
public java.lang.Object setAttribute(java.lang.String name,
java.lang.Object value)
Handler
setAttribute in interface Handlername - is the attribute namevalue - is the attribute value
public void addHandler(Handler h)
throws java.lang.Exception
addHandler in interface TopicalLoggerjava.lang.Exception
public void addTopic(java.lang.String topic)
throws java.lang.Exception
addTopic in interface TopicalLoggerjava.lang.Exceptionpublic java.util.Enumeration getTopics()
getTopics in interface TopicalLogger
public void removeHandler(Handler h)
throws java.lang.Exception
removeHandler in interface TopicalLoggerjava.lang.Exception
public void removeTopic(java.lang.String topic)
throws java.lang.Exception
removeTopic in interface TopicalLoggerjava.lang.Exception
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||