org.apache.openejb.util
Class LogCategory
java.lang.Object
org.apache.openejb.util.LogCategory
public final class LogCategory
- extends Object
Contains Logger categories used in OpenEJB. Be careful when adding new Categories. For example, if a new Category
named OpenEJB.shutdown needs to be added, then the following is not a recommended way
public static final LogCategory OPENEJB_SHUTDOWN = new LogCategory("OpenEJB.shutdown");
The above is not recommended because the above logger has a parent logger in OpenEJB. If we change the Parent logger
category i.e. lets say to OPENEJB (all uppercase), then to maintain the parent-child relationship, we will need
to change other loggers too. For example, we will not need to change OPENEJB_STARTUP and OPENEJB_SERVER because
of the way they are defined (using OPENEJB.name as a prefix).
A better way of adding the Category would be
public static final LogCategory OPENEJB_SHUTDOWN = new LogCategory( OPENEJB.name + ".shutdown");
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPENEJB
public static final LogCategory OPENEJB
OPENEJB_ADMIN
public static final LogCategory OPENEJB_ADMIN
OPENEJB_STARTUP
public static final LogCategory OPENEJB_STARTUP
OPENEJB_STARTUP_CONFIG
public static final LogCategory OPENEJB_STARTUP_CONFIG
OPENEJB_STARTUP_VALIDATION
public static final LogCategory OPENEJB_STARTUP_VALIDATION
OPENEJB_SERVER
public static final LogCategory OPENEJB_SERVER
OPENEJB_SERVER_REMOTE
public static final LogCategory OPENEJB_SERVER_REMOTE
OPENEJB_SECURITY
public static final LogCategory OPENEJB_SECURITY
OPENEJB_RESOURCE_JDBC
public static final LogCategory OPENEJB_RESOURCE_JDBC
OPENEJB_CONNECTOR
public static final LogCategory OPENEJB_CONNECTOR
OPENEJB_DEPLOY
public static final LogCategory OPENEJB_DEPLOY
OPENEJB_HSQL
public static final LogCategory OPENEJB_HSQL
OPENEJB_WS
public static final LogCategory OPENEJB_WS
TRANSACTION
public static final LogCategory TRANSACTION
ACTIVEMQ
public static final LogCategory ACTIVEMQ
GERONIMO
public static final LogCategory GERONIMO
OPENJPA
public static final LogCategory OPENJPA
CORBA_ADAPTER
public static final LogCategory CORBA_ADAPTER
AXIS
public static final LogCategory AXIS
AXIS2
public static final LogCategory AXIS2
CXF
public static final LogCategory CXF
TIMER
public static final LogCategory TIMER
HTTPSERVER
public static final LogCategory HTTPSERVER
SERVICEPOOL
public static final LogCategory SERVICEPOOL
getName
public String getName()
createChild
public LogCategory createChild(String child)
- Creates a child category of this category. Use this method sparingly. This method is to be used in only those circumstances where the name of the
category is not known upfront and is a derived name. If you know the name of the category, it is highly recommended to add a static final field
of type LogCategory in this class
- Parameters:
child
-
- Returns:
- - LogCategory
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.