gov.nasa.arc.brahms.vm.api.components
Interface ILogWriter


public interface ILogWriter

The ILogWriter interface defines the methods to write specific types of messages to a log. The classes implementing this interface are free to write the messages to any destination of their liking. The ILogger writes its messages to all registered log writers allowing logs to be created on standard output, in flat files and in databases depending on the need of the user.

Version:
12 September 2000
Author:
Ron van Hoof
See Also:
ILogger

Method Summary
 void debug(java.lang.String msg)
          Logs the specified message as a debug message in the log.
 void debug(java.lang.Throwable t)
          Logs an error as a debug message in the log file for a Throwable
 void error(java.lang.String msg)
          Logs the specified message as an error message in the log.
 void error(java.lang.String msg, java.lang.Throwable t)
          Logs the error in the log file
 void error(java.lang.Throwable t)
          Logs an error in the log file for a Throwable
 void info(java.lang.String msg)
          Logs an info message in the log file.
 void warning(java.lang.String msg)
          Logs the specified warning as a warning in the log file.
 

Method Detail

debug

void debug(java.lang.String msg)
Logs the specified message as a debug message in the log.

Parameters:
msg - String debug message

debug

void debug(java.lang.Throwable t)
Logs an error as a debug message in the log file for a Throwable

Parameters:
t - Throwable that prompted this log message

error

void error(java.lang.String msg)
Logs the specified message as an error message in the log.

Parameters:
msg - String error message

error

void error(java.lang.Throwable t)
Logs an error in the log file for a Throwable

Parameters:
t - Throwable that prompted this log message

error

void error(java.lang.String msg,
           java.lang.Throwable t)
Logs the error in the log file

Parameters:
msg - Message to be written to the log file
t - Throwable that prompted this log message

warning

void warning(java.lang.String msg)
Logs the specified warning as a warning in the log file.

Parameters:
msg - String warning message

info

void info(java.lang.String msg)
Logs an info message in the log file.

Parameters:
msg - String informational message


Copyright © 1997-2012 All Rights Reserved.