org.apache.turbine.util
Class Log

java.lang.Object
  |
  +--org.apache.turbine.util.Log

public class Log
extends java.lang.Object

A facade class for LoggingService. Use this class to conviniently access the system's configured LoggingSerice.

Author:
Tomasz Zielinski
See Also:
TurbineLoggingService

Constructor Summary
Log()
           
 
Method Summary
static void debug(java.lang.String message)
          This is a log method with logLevel == DEBUG, printing is done by the default logger
static void debug(java.lang.String message, RunData data)
          This is a log method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == DEBUG, printing is done by the default logger
static void destroy()
          Deprecated. The service should be shut down by the broker class only.
static void error(java.lang.String message)
          This is a log method with logLevel == ERROR, printing is done by the default logger
static void error(java.lang.String message, RunData data)
          This is a log method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == ERROR, printing is done by the default logger
static void error(java.lang.Throwable e)
          This is a log method with logLevel == ERROR, printing is done by the default logger
static Logger getLogger()
          This method returns default logger for Turbine System
static Logger getLogger(java.lang.String logName)
          This method returns logger with given name if such logger exsists, or the default logger.
static void info(java.lang.String message)
          This is a log method with logLevel == INFO, printing is done by the default logger
static void info(java.lang.String message, RunData data)
          This is a log method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == INFO, printing is done by the default logger
static void note(java.lang.String message)
          Deprecated. You should use info or debug methods instead.
static void note(java.lang.String logName, java.lang.String message)
          Deprecated. You should use info or debug methods instead.
static void setFormat(java.lang.String format)
          This method sets format style of the default logger.
static void setFormat(java.lang.String logName, java.lang.String format)
          This method sets format style of the given logger.
static void setLogLevel(int level)
          This method sets the log level in default logger
static void setLogLevel(java.lang.String logName, int level)
          This method sets the log level in the logger of given name
static void warn(java.lang.String message)
          This is a log method with logLevel == WARN, printing is done by the default logger
static void warn(java.lang.String message, RunData data)
          This is a log method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == WARN, printing is done by the default logger
 
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

destroy

public static void destroy()
Deprecated. The service should be shut down by the broker class only.

This method has been deprecated, attempts to shutdown logger service.

getLogger

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

getLogger

public static Logger getLogger(java.lang.String logName)
This method returns logger with given name if such logger exsists, or the default logger.

setLogLevel

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

setLogLevel

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

setFormat

public static void setFormat(java.lang.String format)
This method sets format style of the default logger. Format tokens are described in RunDataFilter implementation.
Parameters:
format - String describing what information should be extracted from RunData
See Also:
BaseRunDataFilter

setFormat

public static void setFormat(java.lang.String logName,
                             java.lang.String format)
This method sets format style of the given logger. Format tokens are described in RunDataFilter implementation.
Parameters:
format - String describing what information should be extracted from RunData
See Also:
BaseRunDataFilter

debug

public static void debug(java.lang.String message)
This is a log method 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 method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == DEBUG, printing is done by the given logger

info

public static void info(java.lang.String message)
This is a log method 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 method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == INFO, printing is done by the given logger

warn

public static void warn(java.lang.String message)
This is a log method 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 method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == WARN, printing is done by the given logger

error

public static void error(java.lang.String message)
This is a log method 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 method 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 method 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 method 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 method 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 method 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 method 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 method with logLevel == ERROR, printing is done by the given logger

error

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

note

public static void note(java.lang.String message)
Deprecated. You should use info or debug methods instead.

This method has been deprecated. This is method is kept for historical reason.

note

public static void note(java.lang.String logName,
                        java.lang.String message)
Deprecated. You should use info or debug methods instead.

This method has been deprecated. This is method is kept for historical reason.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.