|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILogger
The public interface to the logging framework.
Method Summary | |
---|---|
void |
addRuntimeDestination(PrintWriter writer)
Adds a new destination for log messages at runtime, as opposed to destinations configured using the configuration file. |
void |
audit(String strKey)
Logs audit message by looking up its Key. |
void |
audit(String strMessage,
boolean isDirect)
Logs strMessage as message (set isDirect == true) |
void |
audit(String strKey,
Object obj)
Logs audit messages with one arg. |
void |
audit(String strKey,
Object[] aInfo)
Logs audit messages using an array of arguments. |
void |
audit(Throwable t)
Logs exception to audit log |
void |
debug(String strMessage)
Logs a debug message, which are used to determine how the internals of a component are working and are typically not internationalized. |
void |
error(String strKey)
Logs error message by looking up its Key. |
void |
error(String strMessage,
boolean isDirect)
Logs strMessage as message (set isDirect == true) |
void |
error(String strKey,
Object obj)
Logs error message with one arg. |
void |
error(String strKey,
Object[] aInfo)
Logs error message with one arg. |
void |
error(Throwable t)
Logs exceptions into the log |
String |
getI18NMessage(String strKey)
Gets an Locale specific string from the resource bundle using strKey |
String |
getI18NMessage(String strKey,
Object obj)
Gets a Locale specific string from the resource bundle using strKey and replaces with one argument |
String |
getI18NMessage(String strKey,
Object[] aInfo)
Gets a Locale specific string from the resource bundle using strKey and replaces with contents of an array |
PrintWriter |
getLogWriter()
Returns a PrintWriter for writing to an appropriate location. |
INestedDiagnosticContext |
getNDCInterface()
Gets an interface to a Nested Diagnostic Context object for applying thread-specific context to your log messages |
String |
getProperty(String strKey)
Gets raw property from the resource bundle * |
void |
info(String strKey)
Log an info message by looking up its key. |
void |
info(String strMessage,
boolean isDirect)
Logs strMessage as message (set isDirect == true) |
void |
info(String strKey,
Object obj)
Logs info messages with one arg. |
void |
info(String strKey,
Object[] aInfo)
Logs an info messages using an array of arguments. |
boolean |
isDebugEnabled()
True if DEBUG priority is enabled |
boolean |
isInfoEnabled()
True if INFO priority is enabled |
void |
setLevel(String strPriority)
Sets the priority for this LogCategory |
void |
setPriority(int intPriority)
Deprecated. This method is being deprecated to allow the logtoolkit to standardize with java logging frameworks. Please use setLevel(String) instead |
void |
setPriority(LogPriority priority)
Deprecated. This method is being deprecated to allow the logtoolkit to standardize with java logging frameworks. Please use setLevel(String) instead |
void |
setPriority(String strPriority)
Deprecated. This method is being deprecated to allow the logtoolkit to standardize with java logging frameworks. Please use setLevel(String) instead |
void |
setResourceBundle(ResourceBundle bundle)
Sets the category's resource bundle |
void |
warn(String strKey)
Logs a warning message by looking up its Key. |
void |
warn(String strMessage,
boolean isDirect)
Logs strMessage as message (set isDirect == true) |
void |
warn(String strKey,
Object obj)
Logs a warning messages with one arg. |
void |
warn(String strKey,
Object[] aInfo)
Logs a warning using an array of arguments. |
void |
warn(Throwable t)
Logs an exception as a warning |
Method Detail |
---|
void audit(String strKey)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.void audit(String strMessage, boolean isDirect)
void audit(String strKey, Object[] aInfo)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.aInfo
- - an array of arguments used to substitute Locale specific values into the message
at the correct place holders.void audit(String strKey, Object obj)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.ojb
- - Object to substitue into the Locale specific message at the appropriate place holder.void audit(Throwable t)
throwable
- - exceptionvoid error(String strKey)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.void error(String strMessage, boolean isDirect)
void error(String strKey, Object[] aInfo)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.aInfo
- - an array of arguments used to substitute Locale specific values into the message
at the correct place holders.void error(String strKey, Object obj)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.obj
- - Object to substitue into the Locale specific message at the appropriate place holder.void error(Throwable t)
throwable
- - exceptionvoid warn(String strKey)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.void warn(String strMessage, boolean isDirect)
void warn(String strKey, Object[] aInfo)
strKey
- - ResourceBundle key that identifies the correct value for substitution into the
Locale specific message.aInfo
- - an array of arguments used to substitute Locale specific values into the message
at the correct place holders.void warn(String strKey, Object obj)
strKey
- - ResourceBundle key for determining the appropriate value to substitute into the
Locale specific message.obj
- - Object to substitue into the Locale specific message at the appropriate place holder.void warn(Throwable t)
throwable
- - exceptionboolean isInfoEnabled()
void info(String strKey)
strKey
- - ResourceBundle key used to identify the appropriate value for
this Locale specific message.void info(String strMessage, boolean isDirect)
strMessage
- - message to logisDirect
- - true if this mesage is actual message text, or false
if its a key into a resource bundle.void info(String strKey, Object[] aInfo)
strKey
- - ResourceBundle key that identifies the appropriate value for substitutionaInfo
- - An array of Objects that will get replace into the Locale specific message at the appropriate place holders.void info(String strKey, Object obj)
strKey
- - ResourceBundle key that identifies the appropriate value for substitutionobj
- - Object that will get replace into the Locale specific message at the appropriate place holder.boolean isDebugEnabled()
void debug(String strMessage)
strMessage
- - debug message that will be written into the logvoid addRuntimeDestination(PrintWriter writer)
writer
- - a new destination for log messagesPrintWriter getLogWriter()
void setPriority(String strPriority)
void setPriority(LogPriority priority)
void setPriority(int intPriority)
void setLevel(String strPriority)
strPriority
- - new level for this LogCategoryvoid setResourceBundle(ResourceBundle bundle)
ResourceBundle
- - specific ResourceBundle that will be used to find keys for
substituting objects into your Locale specific message.String getProperty(String strKey)
strKey
- - specific key for the desired property.
String getI18NMessage(String strKey)
strKey
- - specific key in your ResourceBundle whose value will be replaced in your
Locale specific message.String getI18NMessage(String strKey, Object[] aInfo)
args[]
- - an array of objects that will be substituted into your Locale
specific message using the appropriate place holdersString getI18NMessage(String strKey, Object obj)
INestedDiagnosticContext getNDCInterface()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |