org.radrails.db.core
Class DatabaseLog

java.lang.Object
  extended byorg.radrails.rails.core.RailsLog
      extended byorg.radrails.db.core.DatabaseLog

public class DatabaseLog
extends RailsLog

Wrapper class for ILog.

Author:
mkent

Constructor Summary
DatabaseLog()
           
 
Method Summary
static org.eclipse.core.runtime.IStatus createStatus(int severity, int code, java.lang.String message, java.lang.Throwable exception)
          Creates a status object to log.
static void log(org.eclipse.core.runtime.IStatus status)
          Logs the status to ILog.log(status).
 
Methods inherited from class org.radrails.rails.core.RailsLog
logError, logInfo, logWarning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseLog

public DatabaseLog()
Method Detail

createStatus

public static org.eclipse.core.runtime.IStatus createStatus(int severity,
                                                            int code,
                                                            java.lang.String message,
                                                            java.lang.Throwable exception)
Creates a status object to log.

Parameters:
severity - - the severity level
code - - the status code
message - - the message to log
exception - - the exception to log
Returns:
- a new status object

log

public static void log(org.eclipse.core.runtime.IStatus status)
Logs the status to ILog.log(status).

Parameters:
status - - the status to log