ch.sahits.codegen.core.util
Interface ILogger

All Known Implementing Classes:
Logging, SahitsLogger

public interface ILogger

This interface defines the methods provided by a logger used in this plugin

Since:
2.1.0
Author:
Andi Hotz, Sahits GmbH

Method Summary
 void addException(java.lang.Exception e)
          Add a new exception to the once that already occurred
 void addMessage(java.lang.Class<?> causingClass, java.lang.String message)
          Add a new message to the container, if the message container does not already contain any message from the causing class
 java.lang.String getMessage(java.lang.Class<?> causingClass)
          Retrieve the problem message for a specific causing class
 void log(java.lang.Throwable e)
          Add an error to the error Log.
 void logInfo(java.lang.Throwable e, java.lang.String message)
          Add an error to the error Log.
 void logWarning(java.lang.Throwable e)
          Add an error to the warning Log.
 

Method Detail

log

void log(java.lang.Throwable e)
Add an error to the error Log.

Parameters:
e - Throwable to be logged

logWarning

void logWarning(java.lang.Throwable e)
Add an error to the warning Log.

Parameters:
e - Throwable to be logged

logInfo

void logInfo(java.lang.Throwable e,
             java.lang.String message)
Add an error to the error Log.

Parameters:
e - Throwable to be logged
message - to be logged

addMessage

void addMessage(java.lang.Class<?> causingClass,
                java.lang.String message)
Add a new message to the container, if the message container does not already contain any message from the causing class

Parameters:
causingClass - class that produces the problem
message - describing the problem

getMessage

java.lang.String getMessage(java.lang.Class<?> causingClass)
Retrieve the problem message for a specific causing class

Parameters:
causingClass - class that produces the problem
Returns:
problem message or null if there was no problem from the specified class

addException

void addException(java.lang.Exception e)
Add a new exception to the once that already occurred

Parameters:
e - Exception to be added.