org.objectweb.jonas.common
Class Log
java.lang.Object
|
+--org.objectweb.jonas.common.Log
- public class Log
- extends java.lang.Object
This class provides utility method for using Monolog
- Author:
- Philippe Coq.
Sebastien Chassande-Barrioz sebastien.chassande@inrialpes.fr
Philippe Durieux
Florent Benoit & Ludovic Bert
Adriana Danes:
2003/04/08 : change MBean implementation model from inheritance to delegation
Constructor Summary |
Log()
|
Method Summary |
static void |
configure(org.objectweb.util.monolog.api.LoggerFactory logFactory)
Configure Logger for JOnAS modules
This is called only from a JOnAS Server. |
static void |
configure(java.lang.String file)
Configure Logger for JOnAS modules
This is called only from a JOnAS Server. |
static org.objectweb.util.monolog.api.LevelFactory |
getLevelFactory()
Shortcut that returns the LevelFactory |
static org.objectweb.util.monolog.api.Logger |
getLogger(java.lang.String topic)
Shortcut to get the Logger by its topic name. |
static org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
It returns the unique LoggerFactory used in JOnAS.
initialize it if not already done. |
static java.io.PrintWriter |
getLogWriter(java.lang.String topic)
Returns the standard PrintWriter associated to the logger defined by
its topic.
|
static java.util.Properties |
getProperties()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JONAS_DBM_PREFIX
public static final java.lang.String JONAS_DBM_PREFIX
JONAS_JCA_PREFIX
public static final java.lang.String JONAS_JCA_PREFIX
JONAS_JDBCXA_PREFIX
public static final java.lang.String JONAS_JDBCXA_PREFIX
JONAS_NAMING_PREFIX
public static final java.lang.String JONAS_NAMING_PREFIX
JONAS_PROPCTX_PREFIX
public static final java.lang.String JONAS_PROPCTX_PREFIX
JONAS_REGISTRY_PREFIX
public static final java.lang.String JONAS_REGISTRY_PREFIX
JONAS_SECURITY_PREFIX
public static final java.lang.String JONAS_SECURITY_PREFIX
JONAS_SERVER_PREFIX
public static final java.lang.String JONAS_SERVER_PREFIX
JONAS_WEB_PREFIX
public static final java.lang.String JONAS_WEB_PREFIX
JONAS_EAR_PREFIX
public static final java.lang.String JONAS_EAR_PREFIX
JONAS_MAIL_PREFIX
public static final java.lang.String JONAS_MAIL_PREFIX
JONAS_TESTS_PREFIX
public static final java.lang.String JONAS_TESTS_PREFIX
JONAS_LOADER_PREFIX
public static final java.lang.String JONAS_LOADER_PREFIX
JONAS_GENIC_PREFIX
public static final java.lang.String JONAS_GENIC_PREFIX
JONAS_MANAGEMENT_PREFIX
public static final java.lang.String JONAS_MANAGEMENT_PREFIX
Log
public Log()
configure
public static void configure(java.lang.String file)
- Configure Logger for JOnAS modules
This is called only from a JOnAS Server.
configure
public static void configure(org.objectweb.util.monolog.api.LoggerFactory logFactory)
- Configure Logger for JOnAS modules
This is called only from a JOnAS Server.
getLoggerFactory
public static org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
- It returns the unique LoggerFactory used in JOnAS.
initialize it if not already done.
getLogWriter
public static java.io.PrintWriter getLogWriter(java.lang.String topic)
- Returns the standard PrintWriter associated to the logger defined by
its topic.
This is mainly used for DBM and Connectors.
getLevelFactory
public static org.objectweb.util.monolog.api.LevelFactory getLevelFactory()
- Shortcut that returns the LevelFactory
getLogger
public static org.objectweb.util.monolog.api.Logger getLogger(java.lang.String topic)
- Shortcut to get the Logger by its topic name.
- Parameters:
is
- the topic of the returned logger- Returns:
- always a logger instance (never null value).
getProperties
public static java.util.Properties getProperties()