cz.zcu.fav.kiv.editor.controller.logger
Class Log

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.controller.logger.Log

public class Log
extends java.lang.Object

The Log class is used for logging all errors and debug messages in the editor.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Constructor Summary
Log()
           
 
Method Summary
static void error(java.lang.String resource, java.lang.Throwable ex)
          Logs the error with its error tracing and description obtained by ErrorResourceController.
static void error(java.lang.Throwable ex)
          Logs the error with its error tracing.
static void errorText(java.lang.String text, java.lang.Throwable ex)
          Logs the error with its error tracing and description.
static void fatal(java.lang.Throwable ex)
          Logs the fatal error with its error tracing.
static java.lang.String getStackTrace(java.lang.Throwable t)
           
static void info(java.lang.String resource, java.lang.Object... args)
          Logs the information with its description obtained by ErrorResourceController with arguments.
static void warn(java.lang.String resource, java.lang.Throwable ex)
          Logs the warning with its error tracing and description obtained by ErrorResourceController.
static void warn(java.lang.String resource, java.lang.Throwable ex, java.lang.Object... args)
          Logs the warning with its error tracing and description obtained by ErrorResourceController with arguments.
static void warn(java.lang.Throwable ex)
          Logs the warning with its error tracing.
 
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

error

public static void error(java.lang.String resource,
                         java.lang.Throwable ex)
Logs the error with its error tracing and description obtained by ErrorResourceController.

Parameters:
resource - the resource key of the error description.
ex - the rised error.

errorText

public static void errorText(java.lang.String text,
                             java.lang.Throwable ex)
Logs the error with its error tracing and description.

Parameters:
text - the error description.
ex - the rised error.

error

public static void error(java.lang.Throwable ex)
Logs the error with its error tracing.

Parameters:
ex - the rised error.

info

public static void info(java.lang.String resource,
                        java.lang.Object... args)
Logs the information with its description obtained by ErrorResourceController with arguments.

Parameters:
resource - the resource key of the error description.
args - the arguments of the description.

warn

public static void warn(java.lang.String resource,
                        java.lang.Throwable ex)
Logs the warning with its error tracing and description obtained by ErrorResourceController.

Parameters:
resource - the resource key of the error description.
ex - the rised error.

warn

public static void warn(java.lang.String resource,
                        java.lang.Throwable ex,
                        java.lang.Object... args)
Logs the warning with its error tracing and description obtained by ErrorResourceController with arguments.

Parameters:
resource - the resource key of the warning description.
ex - the rised warning.
args - the arguments of the description.

warn

public static void warn(java.lang.Throwable ex)
Logs the warning with its error tracing.

Parameters:
ex - the rised warning.

fatal

public static void fatal(java.lang.Throwable ex)
Logs the fatal error with its error tracing.

Parameters:
ex - the rised fatal error.

getStackTrace

public static java.lang.String getStackTrace(java.lang.Throwable t)