org.apache.turbine.services.logging
Class TurbineLogging

java.lang.Object
  |
  +--org.apache.turbine.services.logging.TurbineLogging

public class TurbineLogging
extends java.lang.Object

This is a facade class for TurbineLoggingService.

Version:
$Id$
Author:
Tomasz Zielinski, Jon S. Stevens

Constructor Summary
TurbineLogging()
           
 
Method Summary
static void debug(java.lang.String message)
          This is a log metod with logLevel == DEBUG, printing is done by the default logger
static void debug(java.lang.String message, RunData data)
          This is a log metod with logLevel == DEBUG, printing is done by the default logger
static void debug(java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == DEBUG, printing is done by the default logger
static void debug(java.lang.String logName, java.lang.String message)
          This is a log metod with logLevel == DEBUG, printing is done by the given logger
static void debug(java.lang.String logName, java.lang.String message, RunData data)
          This is a log metod with logLevel == DEBUG, printing is done by the given logger
static void debug(java.lang.String logName, java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == DEBUG, printing is done by the given logger
static void debug(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == DEBUG, printing is done by the given logger
static void debug(java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == DEBUG, printing is done by the default logger
static void error(java.lang.String message)
          This is a log metod with logLevel == ERROR, printing is done by the default logger
static void error(java.lang.String message, RunData data)
          This is a log metod with logLevel == ERROR, printing is done by the default logger
static void error(java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == ERROR, printing is done by the default logger
static void error(java.lang.String logName, java.lang.String message)
          This is a log metod with logLevel == ERROR, printing is done by the given logger
static void error(java.lang.String logName, java.lang.String message, RunData data)
          This is a log metod with logLevel == ERROR, printing is done by the given logger
static void error(java.lang.String logName, java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == ERROR, printing is done by the given logger
static void error(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == ERROR, printing is done by the given logger
static void error(java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == ERROR, printing is done by the default logger
protected  void finalize()
          Attempt to close the log files when the class is GC'd.
static Logger getLogger()
          This metod returns default logger for Turbine System
static Logger getLogger(java.lang.String logName)
          This metod returns logger with given name.
protected static LoggingService getService()
          Utility method for accessing the service implementation
static void info(java.lang.String message)
          This is a log metod with logLevel == INFO, printing is done by the default logger
static void info(java.lang.String message, RunData data)
          This is a log metod with logLevel == INFO, printing is done by the default logger
static void info(java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == INFO, printing is done by the default logger
static void info(java.lang.String logName, java.lang.String message)
          This is a log metod with logLevel == INFO, printing is done by the given logger
static void info(java.lang.String logName, java.lang.String message, RunData data)
          This is a log metod with logLevel == INFO, printing is done by the given logger
static void info(java.lang.String logName, java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == INFO, printing is done by the given logger
static void info(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == INFO, printing is done by the given logger
static void info(java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == INFO, printing is done by the default logger
static void setFormat(java.lang.String format)
          This metod sets format style of the default logger
static void setFormat(java.lang.String logName, java.lang.String format)
          This metod sets format style of the given logger.
static void setLogLevel(int level)
          This metod sets the log level in default logger
static void setLogLevel(java.lang.String logName, int level)
          This metod sets the log level in the logger of given name
static void warn(java.lang.String message)
          This is a log metod with logLevel == WARN, printing is done by the default logger
static void warn(java.lang.String message, RunData data)
          This is a log metod with logLevel == WARN, printing is done by the default logger
static void warn(java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == WARN, printing is done by the default logger
static void warn(java.lang.String logName, java.lang.String message)
          This is a log metod with logLevel == WARN, printing is done by the given logger
static void warn(java.lang.String logName, java.lang.String message, RunData data)
          This is a log metod with logLevel == WARN, printing is done by the given logger
static void warn(java.lang.String logName, java.lang.String message, RunData data, java.lang.Throwable t)
          This is a log metod with logLevel == WARN, printing is done by the given logger
static void warn(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == WARN, printing is done by the given logger
static void warn(java.lang.String message, java.lang.Throwable t)
          This is a log metod with logLevel == WARN, printing is done by the default logger
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

TurbineLogging

public TurbineLogging()
Method Detail

getService

protected static LoggingService getService()
Utility method for accessing the service implementation
Returns:
a LoggingService implementation instance

finalize

protected void finalize()
                 throws java.lang.Throwable
Attempt to close the log files when the class is GC'd.
Overrides:
finalize in class java.lang.Object

getLogger

public static Logger getLogger()
This metod returns default logger for Turbine System
Returns:
The default logger for system.

getLogger

public static Logger getLogger(java.lang.String logName)
This metod returns logger with given name.

setLogLevel

public static void setLogLevel(int level)
This metod sets the log level in default logger

setLogLevel

public static void setLogLevel(java.lang.String logName,
                               int level)
This metod sets the log level in the logger of given name

setFormat

public static void setFormat(java.lang.String format)
This metod sets format style of the default logger

setFormat

public static void setFormat(java.lang.String logName,
                             java.lang.String format)
This metod sets format style of the given logger.

debug

public static void debug(java.lang.String message)
This is a log metod with logLevel == DEBUG, printing is done by the default logger

debug

public static void debug(java.lang.String message,
                         java.lang.Throwable t)
This is a log metod with logLevel == DEBUG, printing is done by the default logger

debug

public static void debug(java.lang.String logName,
                         java.lang.String message,
                         java.lang.Throwable t)
This is a log metod with logLevel == DEBUG, printing is done by the given logger

debug

public static void debug(java.lang.String logName,
                         java.lang.String message)
This is a log metod with logLevel == DEBUG, printing is done by the given logger

debug

public static void debug(java.lang.String message,
                         RunData data)
This is a log metod with logLevel == DEBUG, printing is done by the default logger

debug

public static void debug(java.lang.String message,
                         RunData data,
                         java.lang.Throwable t)
This is a log metod with logLevel == DEBUG, printing is done by the default logger

debug

public static void debug(java.lang.String logName,
                         java.lang.String message,
                         RunData data,
                         java.lang.Throwable t)
This is a log metod with logLevel == DEBUG, printing is done by the given logger

debug

public static void debug(java.lang.String logName,
                         java.lang.String message,
                         RunData data)
This is a log metod with logLevel == DEBUG, printing is done by the given logger

info

public static void info(java.lang.String message)
This is a log metod with logLevel == INFO, printing is done by the default logger

info

public static void info(java.lang.String message,
                        java.lang.Throwable t)
This is a log metod with logLevel == INFO, printing is done by the default logger

info

public static void info(java.lang.String logName,
                        java.lang.String message)
This is a log metod with logLevel == INFO, printing is done by the given logger

info

public static void info(java.lang.String logName,
                        java.lang.String message,
                        java.lang.Throwable t)
This is a log metod with logLevel == INFO, printing is done by the given logger

info

public static void info(java.lang.String message,
                        RunData data)
This is a log metod with logLevel == INFO, printing is done by the default logger

info

public static void info(java.lang.String message,
                        RunData data,
                        java.lang.Throwable t)
This is a log metod with logLevel == INFO, printing is done by the default logger

info

public static void info(java.lang.String logName,
                        java.lang.String message,
                        RunData data)
This is a log metod with logLevel == INFO, printing is done by the given logger

info

public static void info(java.lang.String logName,
                        java.lang.String message,
                        RunData data,
                        java.lang.Throwable t)
This is a log metod with logLevel == INFO, printing is done by the given logger

warn

public static void warn(java.lang.String message)
This is a log metod with logLevel == WARN, printing is done by the default logger

warn

public static void warn(java.lang.String message,
                        java.lang.Throwable t)
This is a log metod with logLevel == WARN, printing is done by the default logger

warn

public static void warn(java.lang.String logName,
                        java.lang.String message)
This is a log metod with logLevel == WARN, printing is done by the given logger

warn

public static void warn(java.lang.String logName,
                        java.lang.String message,
                        java.lang.Throwable t)
This is a log metod with logLevel == WARN, printing is done by the given logger

warn

public static void warn(java.lang.String message,
                        RunData data)
This is a log metod with logLevel == WARN, printing is done by the default logger

warn

public static void warn(java.lang.String message,
                        RunData data,
                        java.lang.Throwable t)
This is a log metod with logLevel == WARN, printing is done by the default logger

warn

public static void warn(java.lang.String logName,
                        java.lang.String message,
                        RunData data)
This is a log metod with logLevel == WARN, printing is done by the given logger

warn

public static void warn(java.lang.String logName,
                        java.lang.String message,
                        RunData data,
                        java.lang.Throwable t)
This is a log metod with logLevel == WARN, printing is done by the given logger

error

public static void error(java.lang.String message)
This is a log metod with logLevel == ERROR, printing is done by the default logger

error

public static void error(java.lang.String message,
                         java.lang.Throwable t)
This is a log metod with logLevel == ERROR, printing is done by the default logger

error

public static void error(java.lang.String logName,
                         java.lang.String message)
This is a log metod with logLevel == ERROR, printing is done by the given logger

error

public static void error(java.lang.String logName,
                         java.lang.String message,
                         java.lang.Throwable t)
This is a log metod with logLevel == ERROR, printing is done by the given logger

error

public static void error(java.lang.String message,
                         RunData data)
This is a log metod with logLevel == ERROR, printing is done by the default logger

error

public static void error(java.lang.String message,
                         RunData data,
                         java.lang.Throwable t)
This is a log metod with logLevel == ERROR, printing is done by the default logger

error

public static void error(java.lang.String logName,
                         java.lang.String message,
                         RunData data)
This is a log metod with logLevel == ERROR, printing is done by the given logger

error

public static void error(java.lang.String logName,
                         java.lang.String message,
                         RunData data,
                         java.lang.Throwable t)
This is a log metod with logLevel == ERROR, printing is done by the given logger


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.