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 voidLogs a localized and parameterized message with theLevel.DEBUGlogging level.static voidLogs a localized and parameterized message with theLevel.DEBUGlogging level.static voidLogs a localized and parameterized message with theLevel.ERRORlogging level.static voidLogs a localized and parameterized message with theLevel.ERRORlogging level.static voidLogs a localized and parameterized message with theLevel.FATALlogging level.static voidLogs a localized and parameterized message with theLevel.FATALlogging level.static StringgetFullMessage(String message, Object[] params) static StringgetFullMessage(String message, String[] params) static org.apache.logging.log4j.LoggerReturns a logger named according to the value of the source parameter.static org.apache.logging.log4j.LoggerReturns the root loggerstatic voidLogs a localized and parameterized message with theLevel.INFOlogging level.static voidLogs a localized and parameterized message with theLevel.INFOlogging level.static booleanisDebugEnabled(Object source) Indicates whether theLevel.DEBUGlogging level is currently enabled.static booleanisErrorEnabled(Object source) Indicates whether theLevel.ERRORlogging level is currently enabled.static booleanisFatalEnabled(Object source) Indicates whether theLevel.FATALlogging level is currently enabled.static booleanisInfoEnabled(Object source) Indicates whether theLevel.INFOlogging level is currently enabled.static booleanisTraceEnabled(Object source) Indicates whether tracing is currently enabled.static booleanisWarnEnabled(Object source) Indicates whether theLevel.WARNlogging level is currently enabled.static voidmute(boolean fMode) Mute or unmute logging for the given threadstatic voidregisterResourceBundle(ResourceBundle bundle) Registers a resource bundle containing localized log message test.static voidstatic voidsetClientContext(String prefix) static voidLogs a localized and parameterized trace message with theLevel.DEBUGlogging level.static voidLogs a localized and parameterized trace message with theLevel.DEBUGlogging level.static voidLogs a localized and parameterized message with theLevel.WARNlogging level.static voidLogs a localized and parameterized message with theLevel.WARNlogging level.
-
Constructor Details
-
DfLogger
public DfLogger()
-
-
Method Details
-
fatal
Logs a localized and parameterized message with theLevel.FATALlogging 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.FATALlogging 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.ERRORlogging 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.ERRORlogging 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.WARNlogging 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.WARNlogging 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.INFOlogging 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.INFOlogging 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.DEBUGlogging 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.DEBUGlogging 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.DEBUGlogging 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.DEBUGlogging 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.FATALlogging 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:
trueif the is level enabled
-
isErrorEnabled
Indicates whether theLevel.ERRORlogging 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:
trueif the is level enabled
-
isWarnEnabled
Indicates whether theLevel.WARNlogging 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:
trueif the is level enabled
-
isInfoEnabled
Indicates whether theLevel.INFOlogging 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:
trueif the is level enabled
-
isDebugEnabled
Indicates whether theLevel.DEBUGlogging 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:
trueif 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:
trueif 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-trueto mute,falseto unmute.
-
registerResourceBundle
Registers a resource bundle containing localized log message test.- Parameters:
bundle- the resource bundle
-
getFullMessage
- Since:
- 5.2
-
getFullMessage
-