This class is a simple implementation of the Logger interface provided by
the monolog specification.
format
public static String format(String msg,
int removeTopStack)
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.
getCurrentIntLevel
public int getCurrentIntLevel()
Gets the CurrentIntLevel attribute of the LoggerImpl object
- getCurrentIntLevel in interface Logger
- The CurrentIntLevel value
getCurrentLevel
public Level getCurrentLevel()
Gets the CurrentLevel attribute of the LoggerImpl object
- getCurrentLevel in interface Logger
- The CurrentLevel value
getLevel
public Level getLevel(int value)
This method is not synchronized because the configuration is rarely
- getLevel in interface LevelFactory
getLevels
public Level[] getLevels()
This method is not synchronized because the configuration is rarely
- getLevels in interface LevelFactory
getPrintWriter
public PrintWriter getPrintWriter()
getTopics
public Enumeration getTopics()
Gets the Topics attribute of the LoggerImpl object
- getTopics in interface TopicalLogger
- The Topics value
isLoggable
public boolean isLoggable(int l)
Gets the Loggable attribute of the LoggerImpl object
- isLoggable in interface Logger
l
- Description of Parameter
- The Loggable value
isLoggable
public boolean isLoggable(Level l)
Gets the Loggable attribute of the LoggerImpl object
- isLoggable in interface Logger
l
- Description of Parameter
- The Loggable value
isOn
public boolean isOn()
Gets the On attribute of the LoggerImpl object
- isOn in interface Logger
- The On value
log
public void log(int level,
Object o)
Log method
- log in interface Logger
log
public void log(int level,
Object o,
Object location,
Object method)
Log method
- log in interface Logger
log
public void log(int level,
Object o,
Throwable t)
Log method
- log in interface Logger
log
public void log(int level,
Object o,
Throwable t,
Object location,
Object method)
Log method
- log in interface Logger
log
public void log(Level l,
Object o)
Log method
- log in interface Logger
log
public void log(Level l,
Object o,
Object location,
Object method)
Log method
- log in interface Logger
log
public void log(Level l,
Object o,
Throwable t)
Log method
- log in interface Logger
log
public void log(Level l,
Object o,
Throwable t,
Object location,
Object method)
Log method
- log in interface Logger
setAttribute
public Object setAttribute(String name,
Object value)
- setAttribute in interface Handler
setIntLevel
public void setIntLevel(int l)
Sets the IntLevel attribute of the LoggerImpl object
- setIntLevel in interface Logger
l
- The new IntLevel value
setLevel
public void setLevel(Level l)
Sets the Level attribute of the LoggerImpl object
- setLevel in interface Logger
l
- The new Level value
toString
public String toString()
The toString method is override to signal the logger imlementation
fowards its messages to a printwriter
turnOff
public void turnOff()
Turn off this logger
- turnOff in interface Logger
turnOn
public void turnOn()
Turn on this logger
- turnOn in interface Logger