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

java.lang.Object
  extended byorg.globus.ogsa.impl.core.logging.OGSALog4jLog
All Implemented Interfaces:
OGSALogUtil

public class OGSALog4jLog
extends java.lang.Object
implements OGSALogUtil

Our Log implementing commons wrapper around the log4j log implementation


Field Summary
 ConsoleAppender consoleAppender
           
 Logger logit
          Log to this category
 PatternLayout thePattern
           
 
Constructor Summary
OGSALog4jLog()
           
OGSALog4jLog(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.
 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 Logger logit
Log to this category


thePattern

public PatternLayout thePattern

consoleAppender

public ConsoleAppender consoleAppender
Constructor Detail

OGSALog4jLog

public OGSALog4jLog()

OGSALog4jLog

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


OGSALog4jLog

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

Parameters:
loger -
oGSALogFactory -
Method Detail

getLogger

public 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.


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.


debug

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


debug

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


info

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


info

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


warn

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


warn

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


error

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


error

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


fatal

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


fatal

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


isDebugEnabled

public boolean isDebugEnabled()

isErrorEnabled

public boolean isErrorEnabled()

isFatalEnabled

public boolean isFatalEnabled()

isInfoEnabled

public boolean isInfoEnabled()

isTraceEnabled

public boolean isTraceEnabled()

isWarnEnabled

public boolean isWarnEnabled()

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