org.lexevs.logging
Class SimpleLogger

java.lang.Object
  extended by org.lexevs.logging.SimpleLogger
All Implemented Interfaces:
LgLoggerIF, LgMessageDirectorIF

public class SimpleLogger
extends java.lang.Object
implements LgLoggerIF

The Class SimpleLogger.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Konrad Rokicki, Jesse Erdmann

Constructor Summary
SimpleLogger()
           
 
Method Summary
 void busy()
          Output to indicate system is busy - spin a cursor, print a dot, etc.
 java.lang.String debug(java.lang.String message)
          Take a debug message.
 java.lang.String error(java.lang.String message)
          Display a non-fatal error to the user.
 java.lang.String error(java.lang.String message, java.lang.Throwable sourceException)
          Display a non-fatal error to the user
 void exportLogDebug(java.lang.String message)
           
 void exportLogError(java.lang.String message)
           
 void exportLogError(java.lang.String message, java.lang.Throwable e)
           
 void exportLogWarn(java.lang.String message, java.lang.Throwable e)
           
 java.lang.String fatal(java.lang.String message)
          Display a fatal error to the user.
 java.lang.String fatal(java.lang.String message, java.lang.Throwable sourceException)
          Display a fatal error to the user.
 void fatalAndThrowException(java.lang.String message)
          Display a fatal error to the user - and then throw an exception.
 void fatalAndThrowException(java.lang.String message, java.lang.Throwable sourceException)
          Display a fatal error to the user - and then throw an exception.
 java.lang.String info(java.lang.String message)
          Displays a status type of message (not an error or a warning)
 void loadLogDebug(java.lang.String message)
           
 void loadLogError(java.lang.String message)
           
 void loadLogError(java.lang.String message, java.lang.Throwable e)
           
 void loadLogWarn(java.lang.String message, java.lang.Throwable e)
           
 void logMethod()
           
 void logMethod(java.lang.Object[] params)
           
 java.lang.String warn(java.lang.String message)
          Display a warning to the user.
 java.lang.String warn(java.lang.String message, java.lang.Throwable sourceException)
          Display a warning to the user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogger

public SimpleLogger()
Method Detail

busy

public void busy()
Description copied from interface: LgMessageDirectorIF
Output to indicate system is busy - spin a cursor, print a dot, etc.

Specified by:
busy in interface LgMessageDirectorIF

debug

public java.lang.String debug(java.lang.String message)
Description copied from interface: LgMessageDirectorIF
Take a debug message.

Specified by:
debug in interface LgMessageDirectorIF
Returns:
Implementations may return a string, such as a log id.

error

public java.lang.String error(java.lang.String message,
                              java.lang.Throwable sourceException)
Description copied from interface: LgMessageDirectorIF
Display a non-fatal error to the user

Specified by:
error in interface LgMessageDirectorIF
sourceException - The source exception that caused the error.

error

public java.lang.String error(java.lang.String message)
Description copied from interface: LgMessageDirectorIF
Display a non-fatal error to the user.

Specified by:
error in interface LgMessageDirectorIF
Returns:
Implementations may return a string, such as a log id.

fatal

public java.lang.String fatal(java.lang.String message,
                              java.lang.Throwable sourceException)
Description copied from interface: LgMessageDirectorIF
Display a fatal error to the user.

Specified by:
fatal in interface LgMessageDirectorIF
sourceException - The source exception that caused the error.
Returns:
Implementations may return a string, such as a log id.

fatal

public java.lang.String fatal(java.lang.String message)
Description copied from interface: LgMessageDirectorIF
Display a fatal error to the user.

Specified by:
fatal in interface LgMessageDirectorIF
Returns:
Implementations may return a string, such as a log id.

fatalAndThrowException

public void fatalAndThrowException(java.lang.String message,
                                   java.lang.Throwable sourceException)
                            throws java.lang.Exception
Description copied from interface: LgMessageDirectorIF
Display a fatal error to the user - and then throw an exception.

Specified by:
fatalAndThrowException in interface LgMessageDirectorIF
sourceException - The source exception that caused the error.
Throws:
java.lang.Exception

fatalAndThrowException

public void fatalAndThrowException(java.lang.String message)
                            throws java.lang.Exception
Description copied from interface: LgMessageDirectorIF
Display a fatal error to the user - and then throw an exception.

Specified by:
fatalAndThrowException in interface LgMessageDirectorIF
Throws:
java.lang.Exception

info

public java.lang.String info(java.lang.String message)
Description copied from interface: LgMessageDirectorIF
Displays a status type of message (not an error or a warning)

Specified by:
info in interface LgMessageDirectorIF
Returns:
Implementations may return a string, such as a log id.

warn

public java.lang.String warn(java.lang.String message,
                             java.lang.Throwable sourceException)
Description copied from interface: LgMessageDirectorIF
Display a warning to the user

Specified by:
warn in interface LgMessageDirectorIF
sourceException - The source exception that caused the warning
Returns:
Implementations may return a string, such as a log id.

warn

public java.lang.String warn(java.lang.String message)
Description copied from interface: LgMessageDirectorIF
Display a warning to the user.

Specified by:
warn in interface LgMessageDirectorIF
Returns:
Implementations may return a string, such as a log id.

logMethod

public void logMethod()
Specified by:
logMethod in interface LgLoggerIF

logMethod

public void logMethod(java.lang.Object[] params)
Specified by:
logMethod in interface LgLoggerIF

loadLogDebug

public void loadLogDebug(java.lang.String message)
Specified by:
loadLogDebug in interface LgLoggerIF

loadLogError

public void loadLogError(java.lang.String message,
                         java.lang.Throwable e)
Specified by:
loadLogError in interface LgLoggerIF

loadLogError

public void loadLogError(java.lang.String message)
Specified by:
loadLogError in interface LgLoggerIF

loadLogWarn

public void loadLogWarn(java.lang.String message,
                        java.lang.Throwable e)
Specified by:
loadLogWarn in interface LgLoggerIF

exportLogDebug

public void exportLogDebug(java.lang.String message)
Specified by:
exportLogDebug in interface LgLoggerIF

exportLogError

public void exportLogError(java.lang.String message,
                           java.lang.Throwable e)
Specified by:
exportLogError in interface LgLoggerIF

exportLogError

public void exportLogError(java.lang.String message)
Specified by:
exportLogError in interface LgLoggerIF

exportLogWarn

public void exportLogWarn(java.lang.String message,
                          java.lang.Throwable e)
Specified by:
exportLogWarn in interface LgLoggerIF

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.