org.openmdx.kernel.log.impl
Class BootstrapLogger

java.lang.Object
  extended by org.openmdx.kernel.log.impl.BootstrapLogger

public class BootstrapLogger
extends Object

The Bootstrap logger collects log messages while bootstrapping the logging subsystem.

The controlling system must take the responibilty that this logger is closed after bootstrapping.


Method Summary
 void close()
          Closes the bootlogger.
 void flush()
          Flushes the collected log events to the log system
 boolean isOpen()
          Checks if the boot logger is open.
 void logCriticalError(Object obj, String method, String message)
          Logs a critical error message.
 void logDetail(Object obj, String method, String message)
          Logs a detail message.
 void logError(Object obj, String method, String message)
          Logs an error message.
 void logInfo(Object obj, String method, String message)
          Logs an info message.
 void logNotification(Object obj, String method, String message)
          Logs a notification message.
 void logTrace(Object obj, String method, String message)
          Logs a trace message.
 void logWarning(Object obj, String method, String message)
          Logs a warning message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

logCriticalError

public void logCriticalError(Object obj,
                             String method,
                             String message)
Logs a critical error message.

Parameters:
obj - The object that logs the message
method - The method that logs the message
message - a log message

logError

public void logError(Object obj,
                     String method,
                     String message)
Logs an error message.

Parameters:
obj - The object that logs the message
method - The method that logs the message
message - a log message

logWarning

public void logWarning(Object obj,
                       String method,
                       String message)
Logs a warning message.

Parameters:
obj - The object that logs the message
method - The method that logs the message
message - a log message

logInfo

public void logInfo(Object obj,
                    String method,
                    String message)
Logs an info message.

Parameters:
obj - The object that logs the message
method - The method that logs the message
message - a log message

logDetail

public void logDetail(Object obj,
                      String method,
                      String message)
Logs a detail message.

Parameters:
obj - The object that logs the message
method - The method that logs the message
message - a log message

logTrace

public void logTrace(Object obj,
                     String method,
                     String message)
Logs a trace message.

Parameters:
obj - The object that logs the message
method - The method that logs the message
message - a log message

logNotification

public void logNotification(Object obj,
                            String method,
                            String message)
Logs a notification message.

Parameters:
obj - The object that logs the message
method - The method that logs the message
message - a log message

flush

public void flush()
Flushes the collected log events to the log system


close

public void close()
Closes the bootlogger.


isOpen

public boolean isOpen()
Checks if the boot logger is open.

Returns:
true if open


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.