galaxy.util
Class Logger

java.lang.Object
  |
  +--galaxy.util.Logger
All Implemented Interfaces:
DiagnosticLogger

public class Logger
extends java.lang.Object
implements DiagnosticLogger

This is class is used to display diagnositc log messages.


Constructor Summary
Logger()
           
 
Method Summary
static Logger getLogger()
           
 void logErrorMessage(java.lang.String msg)
          Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
 void logErrorMessage(java.lang.String msg, java.lang.Exception ex)
          Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
 void logErrorMessage(java.lang.String msg, java.lang.Exception ex, java.lang.String location)
          Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
 void logErrorMessage(java.lang.String msg, java.lang.String location)
          Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
 void logFatalMessage(java.lang.String msg)
          Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
 void logFatalMessage(java.lang.String msg, java.lang.Exception ex)
          Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
 void logFatalMessage(java.lang.String msg, java.lang.Exception ex, java.lang.String location)
          Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
 void logFatalMessage(java.lang.String msg, java.lang.String location)
          Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
 void logMessage(java.lang.String msg)
          Displays a message to System.out (at any verbosity level).
 void logMessage(java.lang.String msg, int level)
          Displays a message to System.out.
 void logMessage(java.lang.String msg, int level, java.lang.String location)
          Displays a message to System.out.
 void logWarningMessage(java.lang.String msg)
          Displays a warning message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.WARNING_VERBOSITY_LEVEL.
 void logWarningMessage(java.lang.String msg, java.lang.String location)
          Displays a warning message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.WARNING_VERBOSITY_LEVEL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

getLogger

public static Logger getLogger()

logMessage

public void logMessage(java.lang.String msg,
                       int level)
Displays a message to System.out.
Specified by:
logMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
level - the minimum verbosity level at which to display the message (verbosity levels are defined in galaxy.server.MainServer)

logMessage

public void logMessage(java.lang.String msg,
                       int level,
                       java.lang.String location)
Displays a message to System.out.
Specified by:
logMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
level - the minimum verbosity level at which to display the message (verbosity levels are defined in galaxy.server.MainServer)
location - "location" of the associated call to this method (e.g., the class and method name from which this call was made) which is displayed at verbosity levels 4 and above

logMessage

public void logMessage(java.lang.String msg)
Displays a message to System.out (at any verbosity level).
Specified by:
logMessage in interface DiagnosticLogger
Parameters:
msg - the message to display

logErrorMessage

public void logErrorMessage(java.lang.String msg)
Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
Specified by:
logErrorMessage in interface DiagnosticLogger
Parameters:
msg - the message to display

logErrorMessage

public void logErrorMessage(java.lang.String msg,
                            java.lang.Exception ex)
Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
Specified by:
logErrorMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
ex - the stack trace of this exception is also displayed

logErrorMessage

public void logErrorMessage(java.lang.String msg,
                            java.lang.String location)
Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
Specified by:
logErrorMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
location - "location" of the associated call to this method (e.g., the class and method name from which this call was made) which is displayed at verbosity levels 4 and above

logErrorMessage

public void logErrorMessage(java.lang.String msg,
                            java.lang.Exception ex,
                            java.lang.String location)
Displays an error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.ERROR_VERBOSITY_LEVEL.
Specified by:
logErrorMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
ex - the stack trace of this exception is also displayed
location - "location" of the associated call to this method (e.g., the class and method name from which this call was made) which is displayed at verbosity levels 4 and above

logFatalMessage

public void logFatalMessage(java.lang.String msg)
Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
Specified by:
logFatalMessage in interface DiagnosticLogger
Parameters:
msg - the message to display

logFatalMessage

public void logFatalMessage(java.lang.String msg,
                            java.lang.Exception ex)
Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
Specified by:
logFatalMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
ex - the stack trace of this exception is also displayed

logFatalMessage

public void logFatalMessage(java.lang.String msg,
                            java.lang.String location)
Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
Specified by:
logFatalMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
location - "location" of the associated call to this method (e.g., the class and method name from which this call was made) which is displayed at verbosity levels 4 and above

logFatalMessage

public void logFatalMessage(java.lang.String msg,
                            java.lang.Exception ex,
                            java.lang.String location)
Displays a fatal error message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.FATAL_VERBOSITY_LEVEL.
Specified by:
logFatalMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
ex - the stack trace of this exception is also displayed
location - "location" of the associated call to this method (e.g., the class and method name from which this call was made) which is displayed at verbosity levels 4 and above

logWarningMessage

public void logWarningMessage(java.lang.String msg)
Displays a warning message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.WARNING_VERBOSITY_LEVEL.
Specified by:
logWarningMessage in interface DiagnosticLogger
Parameters:
msg - the message to display

logWarningMessage

public void logWarningMessage(java.lang.String msg,
                              java.lang.String location)
Displays a warning message to System.err when the current verbosity level is equal to or greater than galaxy.server.MainServer.WARNING_VERBOSITY_LEVEL.
Specified by:
logWarningMessage in interface DiagnosticLogger
Parameters:
msg - the message to display
location - "location" of the associated call to this method (e.g., the class and method name from which this call was made) which is displayed at verbosity levels 4 and above