com.partnersoft.system
Class Log

java.lang.Object
  extended by com.partnersoft.system.Log

public class Log
extends java.lang.Object

This is the facade for the main system logging mechanism. It should be used for all logging activities. Convenience routines are provided to log at the various defined levels and to indent and undent.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Constructor Summary
Log()
           
 
Method Summary
static void debug(java.lang.Object message)
          Only used for serious debugging.
static void error(java.lang.Object message)
          Errors are potential problems that may affect correct behavior of the application, but generally do not cause the application to abort.
static void error(java.lang.Throwable message)
           
static void fatal(java.lang.Object message)
          Fatal errors are definitely problems, and generally cause either incorrect or incomplete behavior or out-and-out software failure.
static void fatal(java.lang.Throwable message)
           
static void info(java.lang.Object message)
          Info entries are normal log entries, used for informational or troubleshooting purposes only.
static void pop()
          Pops the context.
static void push(java.lang.String contextName)
          Pushes the context in, and gives it a name.
static void setName(java.lang.String name)
          Provides a name for the log.
static void setupLogging()
           
static void setupLoggingForCGI()
           
static void warn(java.lang.Object message)
          Warnings may not be errors in themselves but might be indicative of other problems.
static void warn(java.lang.Throwable message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log()
Method Detail

setupLogging

public static void setupLogging()

setupLoggingForCGI

public static void setupLoggingForCGI()

debug

public static void debug(java.lang.Object message)
Only used for serious debugging. Generally not even turned on in the log.


info

public static void info(java.lang.Object message)
Info entries are normal log entries, used for informational or troubleshooting purposes only.


warn

public static void warn(java.lang.Object message)
Warnings may not be errors in themselves but might be indicative of other problems. Incidents which cause cautions should not affect correct behavior of the application, and are not directly reported to the user.


warn

public static void warn(java.lang.Throwable message)

error

public static void error(java.lang.Object message)
Errors are potential problems that may affect correct behavior of the application, but generally do not cause the application to abort. The user is generally alerted.


error

public static void error(java.lang.Throwable message)

fatal

public static void fatal(java.lang.Object message)
Fatal errors are definitely problems, and generally cause either incorrect or incomplete behavior or out-and-out software failure. They are serious and the user is always alerted.


fatal

public static void fatal(java.lang.Throwable message)

setName

public static void setName(java.lang.String name)
Provides a name for the log. These are generally used to name log files, and generally correspond to an application or module.


push

public static void push(java.lang.String contextName)
Pushes the context in, and gives it a name. This is used to handle nesting of log entries.


pop

public static void pop()
Pops the context. Used for nesting of log entries.