|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tivoli.jflt.LogManager
LogManager
is a JFLT facility from which JFLT-compliant
GenericLogger
objects are obtained.
The LogManager
is a process singleton that can be configured via
the static setManager
method for using a specialized user's
manager implementation. Users must obtain a reference to this singleton
manager instance via the getManager
method. When a user requests
a named message logger from the manager, the manager will create it and then
returns a reference to the caller.
Constructor Summary | |
protected |
LogManager()
Creates a new LogManger . |
Method Summary | |
protected abstract LogAdapter |
createLogAdapter(LoggerParameters params)
This method must be provided by manager specializations. |
protected LogCatalog |
createLogCatalog(java.lang.String catalogName)
Creates a new LogCatalog instance. |
GenericLogger |
createLogger(java.lang.String organization,
java.lang.String product,
java.lang.String component,
java.lang.String name,
java.lang.String catalogName)
Creates the specified GenericLogger . |
static LogManager |
getManager()
Gets the LogManager . |
static long |
getSequenceNumber()
Gets the sequence number that identifies the current logging manager. |
static void |
setManager(LogManager manager,
java.lang.Class catalogClass)
Configures the LogManager class for using the specified
manager specialization and message catalog implementation. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected LogManager()
LogManger
.Method Detail |
public static final LogManager getManager()
LogManager
. If the LogManager
has
already been configured for using a manager specialization through a
previous call to setManager
, the given manager specialization
is returned. Otherwise, a default manager used for managing a circular
buffer is created and returned.public static final void setManager(LogManager manager, java.lang.Class catalogClass)
LogManager
class for using the specified
manager specialization and message catalog implementation.
The sequence number is incremented by one.
manager
- The manager specialization. If null
, the current
manager is used.catalogClass
- The class implementing the LogCatalog
interface or null
for setting the default catalog
implementation (LogCatalogSupport
).catalogClass
does not
implement LogCatalog
interface.public static final long getSequenceNumber()
LogManager
in the
context of the JVM.protected LogCatalog createLogCatalog(java.lang.String catalogName) throws java.lang.InstantiationException, java.lang.IllegalAccessException
LogCatalog
instance.catalogName
- The name used for identifying the catalog containing the
logging messages. If null
no message catalog is set.public GenericLogger createLogger(java.lang.String organization, java.lang.String product, java.lang.String component, java.lang.String name, java.lang.String catalogName)
GenericLogger
. The returned object is
fully configured to log messages.organization
- The name of the organization. May not be null or empty
String.product
- The name of the product. May not be null or empty String.component
- The name of the component. May not be null or empty String.name
- The name of the logger. May not be null or empty String.catalogName
- The catalog name, usually a Java resource bundle. If
null
no message catalog is set.protected abstract LogAdapter createLogAdapter(LoggerParameters params)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |