ch.sahits.codegen.ui
Class Logging

java.lang.Object
  extended by ch.sahits.codegen.core.util.BasicLogger
      extended by ch.sahits.codegen.ui.Logging
All Implemented Interfaces:
ILogger

public final class Logging
extends BasicLogger
implements ILogger

This class provides static methods for error handling

Since:
0.9.1
Author:
Andi Hotz

Constructor Summary
Logging()
           
 
Method Summary
 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.
static void setPluginID(java.lang.String pluginID)
          Set the plugin ID, so that this Logging class can be used by several plug-ins
 
Methods inherited from class ch.sahits.codegen.core.util.BasicLogger
addException, addMessage, getMessage, getThrownException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.sahits.codegen.core.util.ILogger
addException, addMessage, getMessage
 

Constructor Detail

Logging

public Logging()
Method Detail

log

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

Specified by:
log in interface ILogger
Parameters:
e - Throwable to be logged

logWarning

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

Specified by:
logWarning in interface ILogger
Parameters:
e - Throwable to be logged

logInfo

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

Specified by:
logInfo in interface ILogger
Parameters:
e - Throwable to be logged
message - to be logged

setPluginID

public static void setPluginID(java.lang.String pluginID)
Set the plugin ID, so that this Logging class can be used by several plug-ins

Parameters:
pluginID -