org.objectweb.util.monolog.api
Interface MonologFactory
- HandlerFactory, LevelFactory, LoggerFactory
public interface MonologFactory
A monolog factory is a factory for loggers, levels and handlers. It permits
also to configure specificaly a wrapper.
- S.Chassande-Barrioz
static String | DEFAULT - This constant represents the default configuration type.
|
static String | LOG_CONFIGURATION_FILE - This constant can be used to specify the specific configuration file.
|
static String | LOG_CONFIGURATION_FILE_USE_CLASSPATH - This constant can be used to specify if the configuration file must be
searched into the classpath
|
static String | LOG_CONFIGURATION_TYPE - This constant can be used to specify the type of specific configuration
which you need.
|
static String | PROPERTY - This constant represents the property configuration type.
|
static String | XML - This constant represents the xml configuration type.
|
void | configure(Properties prop) - This method permits to order to a monolog wrapper to configure the
underlying log system.
|
DEFAULT
public static final String DEFAULT
This constant represents the default configuration type. It means that
the wrapper must initialized the underlying sub system with the default
configuration.
LOG_CONFIGURATION_FILE
public static final String LOG_CONFIGURATION_FILE
This constant can be used to specify the specific configuration file.
LOG_CONFIGURATION_FILE_USE_CLASSPATH
public static final String LOG_CONFIGURATION_FILE_USE_CLASSPATH
This constant can be used to specify if the configuration file must be
searched into the classpath
LOG_CONFIGURATION_TYPE
public static final String LOG_CONFIGURATION_TYPE
This constant can be used to specify the type of specific configuration
which you need. The possible value are DEFAULT, PROPERTY and XML.
PROPERTY
public static final String PROPERTY
This constant represents the property configuration type. It means that
the wrapper must used the LOG_CONFIGURATION_FILE constant to fetch the
property file which describes the configuration.
XML
public static final String XML
This constant represents the xml configuration type. It means that
the wrapper must used the LOG_CONFIGURATION_FILE constant to fetch the
xml file which describes the configuration.
configure
public void configure(Properties prop)
throws Exception
This method permits to order to a monolog wrapper to configure the
underlying log system.
prop
- contains properties which describes the way to configure.
In particular three properties could be used:
- LOG_CONFIGURATION_TYPE
- LOG_CONFIGURATION_FILE
- LOG_CONFIGURATION_FILE_USE_CLASSPATH