WebLogic Integration


com.bea.logging
Interface ILogger

All Known Implementing Classes:
LogCategory

public interface ILogger

The public interface to the logging framework.

Author:
Copyright © 2000, 2001 BEA Systems, Inc. All Rights Reserved.

Method Summary
 void addRuntimeDestination(java.io.PrintWriter writer)
          Adds a new destination for log messages at runtime, as opposed to destinations configured using the configuration file.
 void audit(java.lang.String strKey)
          logs audit message by looking up its strKey
 void audit(java.lang.String strMessage, boolean isDirect)
          logs strMessage as message (set isDirect == true)
 void audit(java.lang.String strKey, java.lang.Object obj)
          logs audit messages with one arg
 void audit(java.lang.String strKey, java.lang.Object[] aInfo)
          logs audit messages with args
 void audit(java.lang.Throwable t)
          logs exception to audit log
 void debug(java.lang.String strMessage)
          logs a debug message
 void error(java.lang.String strKey)
          logs error message by looking up its strKey
 void error(java.lang.String strMessage, boolean isDirect)
          logs strMessage as message (set isDirect == true)
 void error(java.lang.String strKey, java.lang.Object obj)
          logs error messages with one arg
 void error(java.lang.String strKey, java.lang.Object[] aInfo)
          logs error messages with args
 void error(java.lang.Throwable t)
          logs exceptions to error log
 java.lang.String getI18NMessage(java.lang.String strKey)
          get a string from the resource bundle using strKey
 java.lang.String getI18NMessage(java.lang.String strKey, java.lang.Object obj)
          get a string from the resource bundle using strKey and replace with one arg
 java.lang.String getI18NMessage(java.lang.String strKey, java.lang.Object[] aInfo)
          get a string from the resource bundle using strKey and replace with args
 java.io.PrintWriter getLogWriter()
           
 INestedDiagnosticContext getNDCInterface()
          get an interface to a Nested Diagnostic Context object for applying thread-specific context to your log messages
 void info(java.lang.String strKey)
          log a warning message by looking up its strKey
 void info(java.lang.String strMessage, boolean isDirect)
          logs strMessage as message (set isDirect == true)
 void info(java.lang.String strKey, java.lang.Object obj)
          logs info messages with one arg
 void info(java.lang.String strKey, java.lang.Object[] aInfo)
          logs a info message with args
 boolean isDebugEnabled()
          true if DEBUG priority is enabled
 boolean isInfoEnabled()
          true if INFO priority is enabled
 void setPriority(int intPriority)
          converts int to Priority, and sets
 void setPriority(LogPriority priority)
          sets the category priority
 void setPriority(java.lang.String strPriority)
          sets the category priority
 void setResourceBundle(java.util.ResourceBundle bundle)
          sets the category's resource bundle
 void warn(java.lang.String strKey)
          log a warning message by looking up its strKey
 void warn(java.lang.String strMessage, boolean isDirect)
          logs strMessage as message (set isDirect == true)
 void warn(java.lang.String strKey, java.lang.Object obj)
          logs warn messages with one arg
 void warn(java.lang.String strKey, java.lang.Object[] aInfo)
          log a warning with args
 void warn(java.lang.Throwable t)
          logs an exception as a warning
 

Method Detail

audit

public void audit(java.lang.String strKey)
logs audit message by looking up its strKey

audit

public void audit(java.lang.String strMessage,
                  boolean isDirect)
logs strMessage as message (set isDirect == true)

audit

public void audit(java.lang.String strKey,
                  java.lang.Object[] aInfo)
logs audit messages with args

audit

public void audit(java.lang.String strKey,
                  java.lang.Object obj)
logs audit messages with one arg

audit

public void audit(java.lang.Throwable t)
logs exception to audit log

error

public void error(java.lang.String strKey)
logs error message by looking up its strKey

error

public void error(java.lang.String strMessage,
                  boolean isDirect)
logs strMessage as message (set isDirect == true)

error

public void error(java.lang.String strKey,
                  java.lang.Object[] aInfo)
logs error messages with args

error

public void error(java.lang.String strKey,
                  java.lang.Object obj)
logs error messages with one arg

error

public void error(java.lang.Throwable t)
logs exceptions to error log

warn

public void warn(java.lang.String strKey)
log a warning message by looking up its strKey

warn

public void warn(java.lang.String strMessage,
                 boolean isDirect)
logs strMessage as message (set isDirect == true)

warn

public void warn(java.lang.String strKey,
                 java.lang.Object[] aInfo)
log a warning with args

warn

public void warn(java.lang.String strKey,
                 java.lang.Object obj)
logs warn messages with one arg

warn

public void warn(java.lang.Throwable t)
logs an exception as a warning

isInfoEnabled

public boolean isInfoEnabled()
true if INFO priority is enabled

info

public void info(java.lang.String strKey)
log a warning message by looking up its strKey

info

public void info(java.lang.String strMessage,
                 boolean isDirect)
logs strMessage as message (set isDirect == true)

info

public void info(java.lang.String strKey,
                 java.lang.Object[] aInfo)
logs a info message with args

info

public void info(java.lang.String strKey,
                 java.lang.Object obj)
logs info messages with one arg

isDebugEnabled

public boolean isDebugEnabled()
true if DEBUG priority is enabled

debug

public void debug(java.lang.String strMessage)
logs a debug message

addRuntimeDestination

public void addRuntimeDestination(java.io.PrintWriter writer)
Adds a new destination for log messages at runtime, as opposed to destinations configured using the configuration file.

Parameters:
writer - - a new destination for log messages

getLogWriter

public java.io.PrintWriter getLogWriter()

Returns:
a PrintWriter that prints to the destinations configured for this logger.

setPriority

public void setPriority(java.lang.String strPriority)
sets the category priority

setPriority

public void setPriority(LogPriority priority)
sets the category priority

setPriority

public void setPriority(int intPriority)
converts int to Priority, and sets

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle bundle)
sets the category's resource bundle

getI18NMessage

public java.lang.String getI18NMessage(java.lang.String strKey)
get a string from the resource bundle using strKey

getI18NMessage

public java.lang.String getI18NMessage(java.lang.String strKey,
                                       java.lang.Object[] aInfo)
get a string from the resource bundle using strKey and replace with args

getI18NMessage

public java.lang.String getI18NMessage(java.lang.String strKey,
                                       java.lang.Object obj)
get a string from the resource bundle using strKey and replace with one arg

getNDCInterface

public INestedDiagnosticContext getNDCInterface()
get an interface to a Nested Diagnostic Context object for applying thread-specific context to your log messages

WebLogic Integration

WebLogic Integration (WLI)