Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


oracle.adfinternal.model.logging.contextual.logger
Class DefaultContextualLogger

java.lang.Object
  extended by oracle.adf.share.logging.ADFLogger
      extended by oracle.adfinternal.model.logging.contextual.logger.DefaultContextualLogger

All Implemented Interfaces:
BasicContextualLogger, ContextualLogger, BasicLogger, ConfigLogger, FineLogger, FinerLogger, FinestLogger, InfoLogger, SevereLogger, WarningLogger

public class DefaultContextualLogger
extends oracle.adf.share.logging.ADFLogger
implements ContextualLogger

Default implementation of interface ContextualLogger.

Since:
11.1.1.7.2

Field Summary

 

Fields inherited from class oracle.adf.share.logging.ADFLogger
ADD_CONTEXT_DATA_TAG, ADD_REQUEST_MESSAGE_TAG, ADF_ANALYTICS_LOGGER_NAME, ADF_COMPONENT_NAME, ADF_LOGGER_MESSAGE_BUNDLE, ADF_MESSAGE_ACTION_DESC, ADF_MESSAGE_ACTION_NAME, ADF_MESSAGE_CONTEXT_DATA, ADF_MESSAGE_DEFAULT_CONTEXT_DATA, ADF_MESSAGE_DELIMITER, ADF_MESSAGE_PAYLOAD, ADF_MESSAGE_STATUS, ADF_NODE_END, ADF_PERF_LOGGER_NAME, ADF_WEB_REQUEST, ENTERING_TAG, ENTERRING_TAG, ERROR, EXITING_TAG, INTERNAL_ERROR, NOTIFICATION, TRACE, WARNING

 

Fields inherited from interface oracle.adfinternal.model.logging.logger.SevereLogger
LEVEL

 

Fields inherited from interface oracle.adfinternal.model.logging.logger.WarningLogger
LEVEL

 

Fields inherited from interface oracle.adfinternal.model.logging.logger.InfoLogger
LEVEL

 

Fields inherited from interface oracle.adfinternal.model.logging.logger.ConfigLogger
LEVEL

 

Fields inherited from interface oracle.adfinternal.model.logging.logger.FineLogger
LEVEL

 

Fields inherited from interface oracle.adfinternal.model.logging.logger.FinerLogger
LEVEL

 

Fields inherited from interface oracle.adfinternal.model.logging.logger.FinestLogger
LEVEL

 

Constructor Summary
protected DefaultContextualLogger(java.lang.String loggerName, java.lang.String resourceBundle)
           

 

Method Summary
 void close()
          This method is mainly intended to be called by the ContextualLoggingManager when the logger is being removed from the context.
 void config(java.lang.String message, java.lang.Throwable error)
          Log a message at level , if and only if the logger is currently set to publish messages at that level.
 void config(java.lang.Throwable error)
          Log a message at level , based on the given error.
 void log(java.util.logging.Level level, java.lang.Throwable error)
          Log a message at the specified level, based on the given error, if and only if the logger is currently set to publish messages at that level.

 

Methods inherited from class oracle.adf.share.logging.ADFLogger
addContextData, addContextData, addContextData, addHandler, addRequestMessage, begin, begin, begin, beginRequest, config, config, config, config, createADFLogger, createADFLogger, createADFLogger, createADFLogger, createADFLogger, createADFLogger, end, end, end, endRequest, entering, entering, entering, exiting, exiting, fine, fine, fine, fine, fine, fine, fine, fine, finer, finer, finer, finer, finer, finer, finer, finer, finest, finest, finest, finest, finest, finest, finest, finest, flush, getAnonymousLogger, getAnonymousLogger, getECID, getFilter, getFormattedMessage, getFormattedMessage, getHandlers, getLevel, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, info, info, info, info, info, info, info, internal, internal, internal, internal, isConfig, isFine, isFiner, isFinest, isInfo, isInternal, isLoggable, isSevere, isWarning, log, log, log, log, log, log, log, logp, logp, logp, logp, logp, logp, logrb, logrb, logrb, logrb, logrb, LogRelativeADFRequest, removeHandler, setECID, setFilter, setLevel, setParent, setUseParentHandlers, severe, severe, severe, severe, severe, severe, severe, severe, throwing, throwing, warning, warning, warning, warning, warning, warning, warning, warning

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.BasicLogger
getName, isLoggable, log, log

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.SevereLogger
isSevere, severe, severe, severe

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.WarningLogger
isWarning, warning, warning, warning

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.InfoLogger
info, info, info, isInfo

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.ConfigLogger
config, isConfig

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.FineLogger
fine, fine, fine, isFine

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.FinerLogger
entering, entering, exiting, exiting, finer, finer, finer, isFiner, throwing

 

Methods inherited from interface oracle.adfinternal.model.logging.logger.FinestLogger
finest, finest, finest, isFinest

 

Constructor Detail

DefaultContextualLogger

protected DefaultContextualLogger(java.lang.String loggerName,
                                  java.lang.String resourceBundle)

Method Detail

config

public void config(java.lang.String message,
                   java.lang.Throwable error)
Description copied from interface: ConfigLogger
Log a message at level , if and only if the logger is currently set to publish messages at that level.
Specified by:
config in interface ConfigLogger
Parameters:
message - The message to be logged
error - Error which to include relevant details from. It is up to each implementation to decide which details are relevant.

log

public void log(java.util.logging.Level level,
                java.lang.Throwable error)
Log a message at the specified level, based on the given error, if and only if the logger is currently set to publish messages at that level.

This implementation will use the error message as the log message. In other words, this will be equivalent to log(level, error.getMessage(), error)

Specified by:
log in interface BasicLogger
Parameters:
level -
error -

config

public void config(java.lang.Throwable error)
Description copied from interface: ConfigLogger
Log a message at level , based on the given error. if and only if the logger is currently set to publish messages at that level.
Specified by:
config in interface ConfigLogger
Parameters:
error - Error which to derive the log message and also include relevant details from. It is up to each implementation to decide the log message and which details are relevant to include.

close

public void close()
This method is mainly intended to be called by the ContextualLoggingManager when the logger is being removed from the context. Implementations should use this method to cleanup internal state, if necessary.

For this particular implementations, this method is a no-op.

Specified by:
close in interface BasicContextualLogger

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


Copyright © 1997, 2015, Oracle. All rights reserved.