| java.lang.Object org.objectweb.util.monolog.wrapper.printwriter.LoggerImpl
LoggerImpl | public class LoggerImpl implements TopicalLogger,MonologFactory(Code) | | This class is a simple implementation of the Logger interface provided by
the monolog specification.
author: sebastien.chassande@inrialpes.fr |
Method Summary | |
public void | addHandler(Handler h) | public void | addMonologFactoryListener(MonologFactoryListener mfl) | public void | addTopic(String topic) | public void | configure(Properties prop) | public Handler | createHandler(String hn, String handlertype) | public synchronized Level | defineLevel(String name, int value) | public Level | defineLevel(String name, String value) | public static String | format(String msg, int removeTopStack) This method permits to format messages. | public boolean | getAdditivity() | public Object | getAttribute(String name) | public String[] | getAttributeNames() | public int | getCurrentIntLevel() | public Level | getCurrentLevel() | public Handler[] | getHandler() | public Handler | getHandler(String hn) | public Handler[] | getHandlers() | public Level | getLevel(String name) | public Level | getLevel(int value) | public Level[] | getLevels() | public Logger | getLogger(String key) | public Logger | getLogger(String key, String resourceBundleName) | public Logger[] | getLoggers() | public String | getName() | public PrintWriter | getPrintWriter() | public String | getResourceBundleName() | public String[] | getTopic() | public String | getTopicPrefix() | public Enumeration | getTopics() | public String | getType() | public boolean | isLoggable(int l) | public boolean | isLoggable(Level l) | public boolean | isOn() | public void | log(int level, Object o) | public void | log(Level l, Object o) | public void | log(int level, Object o, Throwable t) | public void | log(Level l, Object o, Throwable t) | public void | log(int level, Object o, Object location, Object method) | public void | log(Level l, Object o, Object location, Object method) | public void | log(int level, Object o, Throwable t, Object location, Object method) | public void | log(Level l, Object o, Throwable t, Object location, Object method) | public void | removeAllHandlers() | public Handler | removeHandler(String handlername) | public void | removeHandler(Handler h) | public synchronized void | removeLevel(String name) | public void | removeMonologFactoryListener(MonologFactoryListener mfl) | public void | removeTopic(String topic) | public void | setAdditivity(boolean a) | public Object | setAttribute(String name, Object value) | public void | setIntLevel(int l) | public void | setLevel(Level l) | public void | setName(String n) | public void | setResourceBundleName(String resourceBundleName) | public String | toString() | public void | turnOff() | public void | turnOn() |
additivity | protected boolean additivity(Code) | | |
LoggerImpl | public LoggerImpl()(Code) | | This constructor permits to specify the printWriter linked to this
logger
|
LoggerImpl | public LoggerImpl(PrintWriter _pw)(Code) | | This constructor permits to specify the printWriter linked to this
logger
Parameters: _pw - the printwriter |
LoggerImpl | public LoggerImpl(String n, PrintWriter _pw)(Code) | | This constructor permits to specify the printWriter linked to this
logger
Parameters: _pw - the printwriter |
format | public static String format(String msg, int removeTopStack)(Code) | | This method permits to format messages. More exatcly this method find
the class name and the method name where the log call was done.
In order to find the right class name and method name, this method is
parametrable either the number of call done in this logger.
|
getAdditivity | public boolean getAdditivity()(Code) | | |
getCurrentIntLevel | public int getCurrentIntLevel()(Code) | | Gets the CurrentIntLevel attribute of the LoggerImpl object
The CurrentIntLevel value |
getCurrentLevel | public Level getCurrentLevel()(Code) | | Gets the CurrentLevel attribute of the LoggerImpl object
The CurrentLevel value |
getLevel | public Level getLevel(int value)(Code) | | This method is not synchronized because the configuration is rarely
|
getLevels | public Level[] getLevels()(Code) | | This method is not synchronized because the configuration is rarely
|
getResourceBundleName | public String getResourceBundleName()(Code) | | |
getTopics | public Enumeration getTopics()(Code) | | Gets the Topics attribute of the LoggerImpl object
The Topics value |
isLoggable | public boolean isLoggable(int l)(Code) | | Gets the Loggable attribute of the LoggerImpl object
Parameters: l - Description of Parameter The Loggable value |
isLoggable | public boolean isLoggable(Level l)(Code) | | Gets the Loggable attribute of the LoggerImpl object
Parameters: l - Description of Parameter The Loggable value |
isOn | public boolean isOn()(Code) | | Gets the On attribute of the LoggerImpl object
The On value |
removeLevel | public synchronized void removeLevel(String name)(Code) | | |
setAdditivity | public void setAdditivity(boolean a)(Code) | | |
setIntLevel | public void setIntLevel(int l)(Code) | | Sets the IntLevel attribute of the LoggerImpl object
Parameters: l - The new IntLevel value |
setLevel | public void setLevel(Level l)(Code) | | Sets the Level attribute of the LoggerImpl object
Parameters: l - The new Level value |
setResourceBundleName | public void setResourceBundleName(String resourceBundleName)(Code) | | |
toString | public String toString()(Code) | | The toString method is override to signal the logger imlementation
fowards its messages to a printwriter
|
turnOff | public void turnOff()(Code) | | Turn off this logger
|
turnOn | public void turnOn()(Code) | | Turn on this logger
|
|
|