org.globus.ogsa.impl.core.logging
Class OGSALog4jLog

java.lang.Object
  extended byorg.globus.ogsa.impl.core.logging.OGSALog4jLog
All Implemented Interfaces:
org.apache.commons.logging.Log, OGSALogUtil

public class OGSALog4jLog
extends java.lang.Object
implements org.apache.commons.logging.Log, OGSALogUtil

Our Log implementing commons wrapper around the log4j log implementation

Author:
John Wiley, John Wiley, OGSA Development, IBM Poughkeepsie

Field Summary
 org.apache.log4j.ConsoleAppender consoleAppender
           
 org.apache.log4j.Logger logit
          Log to this category
 org.apache.log4j.PatternLayout thePattern
           
 
Constructor Summary
OGSALog4jLog()
           
OGSALog4jLog(org.apache.log4j.Logger loger)
          For use with a log4j factory
OGSALog4jLog(org.apache.log4j.Logger loger, OGSALogFactory oGSALogFactory, java.lang.String aName)
          Constructor OGSALog4jLog.
OGSALog4jLog(java.lang.String name)
          Base constructor
 
Method Summary
 void debug(java.lang.Object message)
          Log a message to the Log4j logger with DEBUG priority.
 void debug(java.lang.Object message, java.lang.Throwable t)
          Log an error to the Log4j logger with DEBUG priority.
 void disableDebug()
           Call this method to disable debug logging level.
 void disableError()
           Call this method to disable Error logging level.
 void disableFatal()
           Call this method to disable Fatal logging level.
 void disableInfo()
           Call this method to disable Info logging level.
 void disableTrace()
           Call this method to stop tracing.
 void disableWarn()
           Call this method to disable Warning logging level.
 void enableDebug()
           Call this method to enable debug logging level.
 void enableError()
           Call this method to enable Error logging level.
 void enableFatal()
           Call this method to enable Fatal logging level.
 void enableInfo()
           Call this method to enable Info logging level.
 void enableTrace()
           Call this method to start tracing.
 void enableWarn()
           Call this method to enable Warning logging level.
 void error(java.lang.Object message)
          Log a message to the Log4j logger with ERROR priority.
 void error(java.lang.Object message, java.lang.Throwable t)
          Log an error to the Log4j logger with ERROR priority.
 void fatal(java.lang.Object message)
          Log a message to the Log4j logger with FATAL priority.
 void fatal(java.lang.Object message, java.lang.Throwable t)
          Log an error to the Log4j logger with FATAL priority.
 org.apache.log4j.Logger getLogger()
          For use by OGSA factory
 void info(java.lang.Object message)
          Log a message to the Log4j logger with INFO priority.
 void info(java.lang.Object message, java.lang.Throwable t)
          Log an error to the Log4j logger with INFO priority.
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(java.lang.Object message)
          Log a message to the Log4j logger with TRACE priority.
 void trace(java.lang.Object message, java.lang.Throwable t)
          Log an error to the Log4j logger with TRACE priority.
 void warn(java.lang.Object message)
          Log a message to the Log4j logger with WARN priority.
 void warn(java.lang.Object message, java.lang.Throwable t)
          Log an error to the Log4j logger with WARN priority.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logit

public org.apache.log4j.Logger logit
Log to this category


thePattern

public org.apache.log4j.PatternLayout thePattern

consoleAppender

public org.apache.log4j.ConsoleAppender consoleAppender
Constructor Detail

OGSALog4jLog

public OGSALog4jLog()

OGSALog4jLog

public OGSALog4jLog(java.lang.String name)
Base constructor


OGSALog4jLog

public OGSALog4jLog(org.apache.log4j.Logger loger,
                    OGSALogFactory oGSALogFactory,
                    java.lang.String aName)
Constructor OGSALog4jLog.

Parameters:
loger -
oGSALogFactory -

OGSALog4jLog

public OGSALog4jLog(org.apache.log4j.Logger loger)
For use with a log4j factory

Method Detail

getLogger

public org.apache.log4j.Logger getLogger()
For use by OGSA factory


trace

public void trace(java.lang.Object message)
Log a message to the Log4j logger with TRACE priority. Currently logs to DEBUG level in Log4J.

Specified by:
trace in interface org.apache.commons.logging.Log

trace

public void trace(java.lang.Object message,
                  java.lang.Throwable t)
Log an error to the Log4j logger with TRACE priority. Currently logs to DEBUG level in Log4J.

Specified by:
trace in interface org.apache.commons.logging.Log

debug

public void debug(java.lang.Object message)
Log a message to the Log4j logger with DEBUG priority.

Specified by:
debug in interface org.apache.commons.logging.Log

debug

public void debug(java.lang.Object message,
                  java.lang.Throwable t)
Log an error to the Log4j logger with DEBUG priority.

Specified by:
debug in interface org.apache.commons.logging.Log

info

public void info(java.lang.Object message)
Log a message to the Log4j logger with INFO priority.

Specified by:
info in interface org.apache.commons.logging.Log

info

public void info(java.lang.Object message,
                 java.lang.Throwable t)
Log an error to the Log4j logger with INFO priority.

Specified by:
info in interface org.apache.commons.logging.Log

warn

public void warn(java.lang.Object message)
Log a message to the Log4j logger with WARN priority.

Specified by:
warn in interface org.apache.commons.logging.Log

warn

public void warn(java.lang.Object message,
                 java.lang.Throwable t)
Log an error to the Log4j logger with WARN priority.

Specified by:
warn in interface org.apache.commons.logging.Log

error

public void error(java.lang.Object message)
Log a message to the Log4j logger with ERROR priority.

Specified by:
error in interface org.apache.commons.logging.Log

error

public void error(java.lang.Object message,
                  java.lang.Throwable t)
Log an error to the Log4j logger with ERROR priority.

Specified by:
error in interface org.apache.commons.logging.Log

fatal

public void fatal(java.lang.Object message)
Log a message to the Log4j logger with FATAL priority.

Specified by:
fatal in interface org.apache.commons.logging.Log

fatal

public void fatal(java.lang.Object message,
                  java.lang.Throwable t)
Log an error to the Log4j logger with FATAL priority.

Specified by:
fatal in interface org.apache.commons.logging.Log

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.apache.commons.logging.Log

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface org.apache.commons.logging.Log

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface org.apache.commons.logging.Log

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface org.apache.commons.logging.Log

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface org.apache.commons.logging.Log

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface org.apache.commons.logging.Log

enableTrace

public void enableTrace()
Description copied from interface: OGSALogUtil

Call this method to start tracing.

Specified by:
enableTrace in interface OGSALogUtil

disableTrace

public void disableTrace()
Description copied from interface: OGSALogUtil

Call this method to stop tracing.

Specified by:
disableTrace in interface OGSALogUtil

enableFatal

public void enableFatal()
Description copied from interface: OGSALogUtil

Call this method to enable Fatal logging level.

Specified by:
enableFatal in interface OGSALogUtil

disableFatal

public void disableFatal()
Description copied from interface: OGSALogUtil

Call this method to disable Fatal logging level.

Specified by:
disableFatal in interface OGSALogUtil

enableDebug

public void enableDebug()
Description copied from interface: OGSALogUtil

Call this method to enable debug logging level.

Specified by:
enableDebug in interface OGSALogUtil

disableDebug

public void disableDebug()
Description copied from interface: OGSALogUtil

Call this method to disable debug logging level.

Specified by:
disableDebug in interface OGSALogUtil

enableError

public void enableError()
Description copied from interface: OGSALogUtil

Call this method to enable Error logging level.

Specified by:
enableError in interface OGSALogUtil

disableError

public void disableError()
Description copied from interface: OGSALogUtil

Call this method to disable Error logging level.

Specified by:
disableError in interface OGSALogUtil

enableWarn

public void enableWarn()
Description copied from interface: OGSALogUtil

Call this method to enable Warning logging level.

Specified by:
enableWarn in interface OGSALogUtil

disableWarn

public void disableWarn()
Description copied from interface: OGSALogUtil

Call this method to disable Warning logging level.

Specified by:
disableWarn in interface OGSALogUtil

enableInfo

public void enableInfo()
Description copied from interface: OGSALogUtil

Call this method to enable Info logging level.

Specified by:
enableInfo in interface OGSALogUtil

disableInfo

public void disableInfo()
Description copied from interface: OGSALogUtil

Call this method to disable Info logging level.

Specified by:
disableInfo in interface OGSALogUtil


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.