Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

com.ibm.wps.portlets.struts.logging
Class WpsStrutsTraceLogger

java.lang.Object
  extended bycom.ibm.wps.portlets.struts.logging.WpsStrutsTraceLogger

public class WpsStrutsTraceLogger
extends java.lang.Object

This class provides logging ability using six different logging levels.

Since:
5.1

Field Summary
static int DEBUG
           
static int ERROR
           
static int FATAL
           
static int INFO
           
static int TRACE
           
static int WARN
           
 

Constructor Summary
WpsStrutsTraceLogger(java.lang.Class aClass)
          Constructor
WpsStrutsTraceLogger(java.lang.String classname)
          Constructor
 

Method Summary
 void entry(int logLevel, java.lang.String loggingMethod)
          Entry
 void exit(int logLevel, java.lang.String loggingMethod)
          Entry
 boolean isLogging(int logLevel)
          Return true if logging is enabled
 void stackTrace(int logLevel, java.lang.String loggingMethod, java.lang.String text)
          Stack Trace
 void text(int logLevel, java.lang.String loggingMethod, java.lang.String text)
          Text
 void text(int logLevel, java.lang.String loggingMethod, java.lang.String text, java.lang.Throwable t)
          Text
 

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

Field Detail

TRACE

public static int TRACE

DEBUG

public static int DEBUG

INFO

public static int INFO

WARN

public static int WARN

ERROR

public static int ERROR

FATAL

public static int FATAL

Constructor Detail

WpsStrutsTraceLogger

public WpsStrutsTraceLogger(java.lang.Class aClass)
Constructor


WpsStrutsTraceLogger

public WpsStrutsTraceLogger(java.lang.String classname)
Constructor

Method Detail

isLogging

public boolean isLogging(int logLevel)
Return true if logging is enabled


text

public void text(int logLevel,
                 java.lang.String loggingMethod,
                 java.lang.String text)
Text

Parameters:
logLevel - the log level
loggingMethod - the logging method
text - the logging text

text

public void text(int logLevel,
                 java.lang.String loggingMethod,
                 java.lang.String text,
                 java.lang.Throwable t)
Text

Parameters:
logLevel - the log level
loggingMethod - the logging method
text - the logging text

entry

public void entry(int logLevel,
                  java.lang.String loggingMethod)
Entry

Parameters:
logLevel - the log level
loggingMethod - the logging method

exit

public void exit(int logLevel,
                 java.lang.String loggingMethod)
Entry

Parameters:
logLevel - the log level
loggingMethod - the logging method

stackTrace

public void stackTrace(int logLevel,
                       java.lang.String loggingMethod,
                       java.lang.String text)
Stack Trace

Parameters:
logLevel - the log level
loggingMethod - the logging method
text - the logging text

Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.