Is an extension of the java.util.logging.Logger class used to wrap Monolog
on the logging system provided in the JDK since the 1.4 version.
addHandler
public void addHandler(java.util.logging.Handler handler)
addHandler
public void addHandler(Handler h)
throws Exception
A TopicalLogger manages a list of Handler instances. This method
allows adding a handler to this list. The addHandler method returns
true only if the Handler did not exist
- addHandler in interface TopicalLogger
addTopic
public void addTopic(String topic)
throws Exception
This method allows adding a topic to a TopicalLogger. This actions change
the hierarchical structure, but also the list of handlers. The list of handlers
of a TopicalLogger is composed of its handlers and all handlers inherited
from its parents. Adding a topic changes the inherited handlers list.
- addTopic in interface TopicalLogger
getAdditivity
public boolean getAdditivity()
It retrieves the additivity flag for this logger instance.
- getAdditivity in interface TopicalLogger
getAttribute
public Object getAttribute(String name)
It retrieves the value of an attribute value of the handler.
- getAttribute in interface Handler
name
- is an attribute name
getAttributeNames
public String[] getAttributeNames()
It retrieves the attributes of the handler
- getAttributeNames in interface Handler
getHandler
public Handler[] getHandler()
Get the Handlers associated with this logger.
- getHandler in interface TopicalLogger
- an array of all registered Handlers
getHandler
public Handler getHandler(String hn)
It returns the handler which the name is equals to the parameter
- getHandler in interface TopicalLogger
hn
- is the handler name
- an Handler or a null value.
getTopic
public String[] getTopic()
This method allows getting a topic list of this TopicalLogger.
- getTopic in interface TopicalLogger
getTopics
public Enumeration getTopics()
This method allows getting a topic list of this TopicalLogger.
Only kept for the backward compatibility.
- getTopics in interface TopicalLogger
getType
public String getType()
It retrieves the Handler type
- getType in interface Handler
log
public void log(int l,
Object o)
- log in interface Logger
log
public void log(int level,
Object o,
Object location,
Object method)
- log in interface Logger
log
public void log(int l,
Object o,
Throwable t)
- log in interface Logger
log
public void log(int level,
Object o,
Throwable t,
Object location,
Object method)
- log in interface Logger
log
public void log(Level l,
Object o,
Object location,
Object method)
- log in interface Logger
log
public void log(Level l,
Object o,
Throwable t)
- log in interface Logger
log
public void log(Level l,
Object o,
Throwable t,
Object location,
Object method)
- log in interface Logger
removeAllHandlers
public void removeAllHandlers()
throws Exception
A TopicalLogger manages a list of Handler instances. This method
allows removing all handler.
- removeAllHandlers in interface TopicalLogger
removeHandler
public void removeHandler(Handler h)
throws Exception
A TopicalLogger manages a list of Handler instances. This method
allows removing a handler to this list.
- removeHandler in interface TopicalLogger
removeTopic
public void removeTopic(String topic)
throws Exception
This method allows removing a topic to a TopicalLogger. This actions change
the hierarchical structure, but also the list of handlers. The list of handlers
of a TopicalLogger is composed of its handlers and all handlers inherited
from its parents. Removing a topic changes the inherited handlers list.
- removeTopic in interface TopicalLogger
setAdditivity
public void setAdditivity(boolean a)
It assigns the additivity flag for this logger instance.
- setAdditivity in interface TopicalLogger
setAttribute
public Object setAttribute(String name,
Object value)
It assigns an attributte to the handler.
- setAttribute in interface Handler
name
- is the attribute namevalue
- is the attribute value
- the old value is the attribute was already defined
setName
public void setName(String name)
It assigns the name of the handler
- setName in interface Handler