com.mmoui.manager.services
Interface ModuleLogger

All Superinterfaces:
java.lang.Thread.UncaughtExceptionHandler

public interface ModuleLogger
extends java.lang.Thread.UncaughtExceptionHandler

Provides a service through which loaded modules can log information to the global log file. Use of this service is not required for modules, however it provides a standardized mechanism through which modules can indicate status and relate issues to global events.

All module events are logged to the application's local storage area (which is OS-dependent) and write lines like the following:

 CODE> DATE TIME - MESSAGE
                      METHOD(FILE:LINE)
 
Where the variables are defined as: The log levels are intended to be used as follows, but this behavior is not enforced. Use of this pattern helps ensure users receive what they expect when setting the minimum log level through the managing application.

Version:
$Id: ModuleLogger.java 127 2009-02-17 11:10:49Z mpdelbuono $
Author:
Matthew P. Del Buono

Method Summary
 void debug(java.lang.String message)
          Records a debug message to the logging system
 void error(java.lang.String message)
          Records an error message to the logging system
 void fatal(java.lang.String message)
          Records a fatal error message to the logging system
 void notice(java.lang.String message)
          Records a notice to the logging system
 void warning(java.lang.String message)
          Records a warning message to the logging system
 
Methods inherited from interface java.lang.Thread.UncaughtExceptionHandler
uncaughtException
 

Method Detail

fatal

void fatal(java.lang.String message)
Records a fatal error message to the logging system

Parameters:
message - The message to record
See Also:
ModuleLogger

error

void error(java.lang.String message)
Records an error message to the logging system

Parameters:
message - The message to record
See Also:
ModuleLogger

warning

void warning(java.lang.String message)
Records a warning message to the logging system

Parameters:
message - The message to record
See Also:
ModuleLogger

notice

void notice(java.lang.String message)
Records a notice to the logging system

Parameters:
message - The message to record
See Also:
ModuleLogger

debug

void debug(java.lang.String message)
Records a debug message to the logging system

Parameters:
message - The message to record
See Also:
ModuleLogger