Package com.documentum.fc.common
Class DfLogger
java.lang.Object
com.documentum.fc.common.DfLogger
A DfLogger object is used to log messages for a specific system or application component. Loggers are normally
named, using a hierarchical dot-separated namespace. Logger names can be arbitrary strings, but they should normally
be based on the package name or class name of the logged component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Logs a localized and parameterized message with theLevel.DEBUG
logging level.static void
Logs a localized and parameterized message with theLevel.DEBUG
logging level.static void
Logs a localized and parameterized message with theLevel.ERROR
logging level.static void
Logs a localized and parameterized message with theLevel.ERROR
logging level.static void
Logs a localized and parameterized message with theLevel.FATAL
logging level.static void
Logs a localized and parameterized message with theLevel.FATAL
logging level.static String
getFullMessage
(String message, Object[] params) static String
getFullMessage
(String message, String[] params) static org.apache.logging.log4j.Logger
Returns a logger named according to the value of the source parameter.static org.apache.logging.log4j.Logger
Returns the root loggerstatic void
Logs a localized and parameterized message with theLevel.INFO
logging level.static void
Logs a localized and parameterized message with theLevel.INFO
logging level.static boolean
isDebugEnabled
(Object source) Indicates whether theLevel.DEBUG
logging level is currently enabled.static boolean
isErrorEnabled
(Object source) Indicates whether theLevel.ERROR
logging level is currently enabled.static boolean
isFatalEnabled
(Object source) Indicates whether theLevel.FATAL
logging level is currently enabled.static boolean
isInfoEnabled
(Object source) Indicates whether theLevel.INFO
logging level is currently enabled.static boolean
isTraceEnabled
(Object source) Indicates whether tracing is currently enabled.static boolean
isWarnEnabled
(Object source) Indicates whether theLevel.WARN
logging level is currently enabled.static void
mute
(boolean fMode) Mute or unmute logging for the given threadstatic void
registerResourceBundle
(ResourceBundle bundle) Registers a resource bundle containing localized log message test.static void
static void
setClientContext
(String prefix) static void
Logs a localized and parameterized trace message with theLevel.DEBUG
logging level.static void
Logs a localized and parameterized trace message with theLevel.DEBUG
logging level.static void
Logs a localized and parameterized message with theLevel.WARN
logging level.static void
Logs a localized and parameterized message with theLevel.WARN
logging level.
-
Constructor Details
-
DfLogger
public DfLogger()
-
-
Method Details
-
fatal
Logs a localized and parameterized message with theLevel.FATAL
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
fatal
Logs a localized and parameterized message with theLevel.FATAL
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
error
Logs a localized and parameterized message with theLevel.ERROR
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
error
Logs a localized and parameterized message with theLevel.ERROR
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
warn
Logs a localized and parameterized message with theLevel.WARN
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
warn
Logs a localized and parameterized message with theLevel.WARN
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
info
Logs a localized and parameterized message with theLevel.INFO
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
info
Logs a localized and parameterized message with theLevel.INFO
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
debug
Logs a localized and parameterized message with theLevel.DEBUG
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
debug
Logs a localized and parameterized message with theLevel.DEBUG
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
trace
Logs a localized and parameterized trace message with theLevel.DEBUG
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
trace
Logs a localized and parameterized trace message with theLevel.DEBUG
logging level. First, the user supplied message key is used to lookup a localized message pattern in a resource bundle. Next, the resulting pattern is formatted usingMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
with the user supplied object parameters.- Parameters:
source
- the logger identifiermessage
- the message or identifier of a message to logparams
- parameters to use when formating messaget
- a throwable to log, may be null.
-
isFatalEnabled
Indicates whether theLevel.FATAL
logging level is currently enabled. This allows expensive operations such as String concatenation to be avoided when the message will be ignored by the logger.- Parameters:
source
- the logger identifier- Returns:
true
if the is level enabled
-
isErrorEnabled
Indicates whether theLevel.ERROR
logging level is currently enabled. This allows expensive operations such as String concatenation to be avoided when the message will be ignored by the logger.- Parameters:
source
- the logger identifier- Returns:
true
if the is level enabled
-
isWarnEnabled
Indicates whether theLevel.WARN
logging level is currently enabled. This allows expensive operations such as String concatenation to be avoided when the message will be ignored by the logger.- Parameters:
source
- the logger identifier- Returns:
true
if the is level enabled
-
isInfoEnabled
Indicates whether theLevel.INFO
logging level is currently enabled. This allows expensive operations such as String concatenation to be avoided when the message will be ignored by the logger.- Parameters:
source
- the logger identifier- Returns:
true
if the is level enabled
-
isDebugEnabled
Indicates whether theLevel.DEBUG
logging level is currently enabled. This allows expensive operations such as String concatenation to be avoided when the message will be ignored by the logger.- Parameters:
source
- the logger identifier- Returns:
true
if the is level enabled
-
isTraceEnabled
Indicates whether tracing is currently enabled. This allows expensive operations such as String concatenation to be avoided when the message will be ignored by the logger.- Parameters:
source
- the logger identifier- Returns:
true
if tracing is enabled
-
getLogger
Returns a logger named according to the value of the source parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.- Parameters:
source
- the logger identifier
-
getRootLogger
public static org.apache.logging.log4j.Logger getRootLogger()Returns the root logger -
setClientContext
-
restoreClientContext
public static void restoreClientContext() -
mute
public static void mute(boolean fMode) Mute or unmute logging for the given thread- Parameters:
fMode
-true
to mute,false
to unmute.
-
registerResourceBundle
Registers a resource bundle containing localized log message test.- Parameters:
bundle
- the resource bundle
-
getFullMessage
- Since:
- 5.2
-
getFullMessage
-