|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.LogService
com.nitido.nimx.services.log.log4j.LogServiceImpl
public class LogServiceImpl
This class provides an implementation of the LogService based on log4j.
| Field Summary | |
|---|---|
static java.lang.String |
CONF_KEY_PREFIX
The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name. |
static int |
LEN_CONF_KEY_PREFIX
The length of the string CONF_KEY_PREFIX. |
static java.lang.String |
PREFIX_LOG4J
Just the string "log4j.". |
| Constructor Summary | |
|---|---|
LogServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new LogService. |
|
| Method Summary | |
|---|---|
Logger |
getLogger(java.lang.Class clazz)
This method returns a reference to the NiM Logger object for the given class. |
Logger |
getLogger(java.lang.String name)
This method returns a reference to the NiM Logger object for the given class name. |
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used by the NiMKernel to initialize the LogService. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONF_KEY_PREFIX
public static final int LEN_CONF_KEY_PREFIX
public static final java.lang.String PREFIX_LOG4J
| Constructor Detail |
|---|
public LogServiceImpl(NiMKernelServiceVisa visa)
visa - Reference to the NiMKernelServiceVisa object required to
instantiate the service. This parameter is required to
ensure that only the NiMkernel can instantiate a reference
to this service.| Method Detail |
|---|
protected void init(NiMKernel kernel,
ConfigurationService confService)
throws InitializationFailedException,
NiMException
init in class LogServicekernel - Reference to the kernel that instantiated this service.confService - Reference to the ConfigurationService
InitializationFailedException - If unable to initialize the service. This exception is
never thrown by this service implementation.
NiMException - If unable to establish a connection with the underlying log
service. This exception is never thrown by this service
implementation.public Logger getLogger(java.lang.String name)
LogService
getLogger in class LogServicename - The class name of the object requesting the logger.
Loggerpublic Logger getLogger(java.lang.Class clazz)
LogService
getLogger in class LogServiceclazz - The class reference of the object requesting the logger.
|
Nitido NiM 2.5 Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.