wt.log4j
Interface Log4jConstants


public interface Log4jConstants

This class declares a number of constants for use with log4j logging.

Supported API: true

Extendable: true


Field Summary
static String MDC_CLIENT_ADDR_KEY
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing the client IP address.
static String MDC_CONTEXT_LABEL
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing a label or identification of the current execution context, e.g.
static String MDC_CONTEXT_TYPE
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing the type of execution context that MDC_CONTEXT_LABEL applies to, e.g.
static String MDC_EFFECTIVE_PRINCIPAL_KEY
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing the current effective principal's authentication name.
static String MDC_METHOD_CONTEXT_DETAIL
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing the method context detail.
static String MDC_REMOTE_CALL_ID_KEY
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing (callee generated) id of remote call that is currently being processed, e.g.
static String MDC_SERVLET_REQUEST_ID_KEY
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing an id like remoteCallId but specifically for servlet requests.
static String MDC_USER_KEY
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing the user authentication name.
static String MDC_WEB_APP_KEY
          Name of log4j MDC (see org.apache.log4j.MDC) entry containing the context path (e.g.
static String SYS_PROP_CANONICAL_HOST_KEY
          Name of system property in which the canonical host name is stored by LogR.initProperties().
static String SYS_PROP_JVM_HOST_KEY
          Name of system property in which the JVM host name (as per Java 5's RuntimeMXBean is stored by LogR.initProperties().
static String SYS_PROP_JVM_ID_KEY
          Name of system property in which JVM id (process id on most platforms) is stored by LogR.initProperties().
 

Field Detail

SYS_PROP_JVM_ID_KEY

static final String SYS_PROP_JVM_ID_KEY
Name of system property in which JVM id (process id on most platforms) is stored by LogR.initProperties().

Supported API: true

See Also:
Constant Field Values

SYS_PROP_JVM_HOST_KEY

static final String SYS_PROP_JVM_HOST_KEY
Name of system property in which the JVM host name (as per Java 5's RuntimeMXBean is stored by LogR.initProperties().

Supported API: true

See Also:
Constant Field Values

SYS_PROP_CANONICAL_HOST_KEY

static final String SYS_PROP_CANONICAL_HOST_KEY
Name of system property in which the canonical host name is stored by LogR.initProperties().

Supported API: true

See Also:
Constant Field Values

MDC_CONTEXT_TYPE

static final String MDC_CONTEXT_TYPE
Name of log4j MDC (see org.apache.log4j.MDC) entry containing the type of execution context that MDC_CONTEXT_LABEL applies to, e.g. "ServletRequest".

The combination of MDC_CONTEXT_TYPE and MDC_CONTEXT_LABEL are intentionally broad to allow each execution context to provide appropriate labeling data in MDC_CONTEXT_LABEL namespaced by MDC_CONTEXT_TYPE.

Supported API: true

See Also:
Constant Field Values

MDC_CONTEXT_LABEL

static final String MDC_CONTEXT_LABEL
Name of log4j MDC (see org.apache.log4j.MDC) entry containing a label or identification of the current execution context, e.g. the HTTP request URI.

The combination of MDC_CONTEXT_TYPE and MDC_CONTEXT_LABEL are intentionally broad to allow each execution context to provide appropriate labeling data in MDC_CONTEXT_LABEL namespaced by MDC_CONTEXT_TYPE.

Supported API: true

See Also:
Constant Field Values

MDC_USER_KEY

static final String MDC_USER_KEY
Name of log4j MDC (see org.apache.log4j.MDC) entry containing the user authentication name.

Supported API: true

See Also:
Constant Field Values

MDC_CLIENT_ADDR_KEY

static final String MDC_CLIENT_ADDR_KEY
Name of log4j MDC (see org.apache.log4j.MDC) entry containing the client IP address.

Supported API: true

See Also:
Constant Field Values

MDC_REMOTE_CALL_ID_KEY

static final String MDC_REMOTE_CALL_ID_KEY
Name of log4j MDC (see org.apache.log4j.MDC) entry containing (callee generated) id of remote call that is currently being processed, e.g. the method context id.

Supported API: true

See Also:
Constant Field Values

MDC_SERVLET_REQUEST_ID_KEY

static final String MDC_SERVLET_REQUEST_ID_KEY
Name of log4j MDC (see org.apache.log4j.MDC) entry containing an id like remoteCallId but specifically for servlet requests. This is important within the method server as the servlet request id there is quite different than the RMI or I*E IPC request id.

Supported API: true

See Also:
Constant Field Values

MDC_WEB_APP_KEY

static final String MDC_WEB_APP_KEY
Name of log4j MDC (see org.apache.log4j.MDC) entry containing the context path (e.g. /Windchill) of the web application. This is useful for collecting logs from multiple web applications into a single output location while allowing each application's contribution to be distinguished.

Supported API: true

See Also:
Constant Field Values

MDC_EFFECTIVE_PRINCIPAL_KEY

static final String MDC_EFFECTIVE_PRINCIPAL_KEY
Name of log4j MDC (see org.apache.log4j.MDC) entry containing the current effective principal's authentication name.

Supported API: true

See Also:
Constant Field Values

MDC_METHOD_CONTEXT_DETAIL

static final String MDC_METHOD_CONTEXT_DETAIL
Name of log4j MDC (see org.apache.log4j.MDC) entry containing the method context detail.

Supported API: true

See Also:
Constant Field Values