Method Summary |
|
public static void | debug(String m) This method must be only used to debug the Monolog wrappers. |
public static void | error(String m, Exception e) |
public static MonologFactory | getDefaultMonologFactory() |
public static HandlerFactory | getHandlerFactory(String className) |
public static LevelFactory | getLevelFactory(String className) |
public static LoggerFactory | getLoggerFactory(String className) |
public static MonologFactory | getMonologFactory() |
public static MonologFactory | getMonologFactory(String fileName) Initializes Monolog with a given monolog configuration file name
if the file is found, it delegates the intialization to init(Properties)
method. |
public static MonologFactory | getMonologFactory(Properties properties) Initializes monolog in with a Properties instance.
It searches from the properties the logger factory class name (
MONOLOG_CLASS_NAME property) and it delegates its configuration to
the loadMonologConfiguration(Properties, LoggerFactory) method.
Parameters: properties - can contains the MONOLOG_CLASS_NAME property and therest of the monolog configuration (loggers, handlers, levels). |
public static LoggerFactory | init() |
public static LoggerFactory | init(String fileName) |
public static LoggerFactory | init(Properties properties) |
public static MonologFactory | initialize() Initializes Monolog. |
public static MonologFactory | instanciateMonologFactory(String className) Retrieves a MonologFactory instance.
First it tries to instanciate the given logger factory class name.
If it is not possible it tries to instanciate the logger factory of the
log4j system (if the classes are availlable).
If log4j or its wrapper are not reachable then it tries to instanciate
the wrapper of the log4jME logging system.
If log4jME or its wrapper are not reachable then it tries to instanciate
the wrapper of the java.util.logging logging system.
Finally if any of these wrappers are reachable the basic logger factory
is used.
Parameters: className - is the class name of a LoggerFactory implementation.It can be a null value. |
public static void | loadMonologConfiguration(Properties properties) Loads a monolog configuration into the loggerFactory. |
public static void | loadMonologConfiguration(Properties properties, MonologFactory mf) Loads a monolog configuration into an existing MonologFactory. |
public static void | loadMonologConfiguration(Properties properties, LoggerFactory lf) |