de.fhg.igd.logging
Interface Wrapper

All Known Implementing Classes:
AbstractWrapper

public interface Wrapper

This interface is needed by LoggerImpl objects to be able to perform logging in an abstract way, independent of the currently used underlying logging mechanism.

Version:
"$Id: Wrapper.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Matthias Pressfreund

Method Summary
 void dismiss()
          This method will be called in case the corresponding instance of the implementing class will not be used anymore.
 LogLevel getLogLevel()
          Get the log level of the wrapped logger.
 String getName()
          Get the name of the wrapped logger, which automatically is also the name of the corresponding LoggerImpl object.
 void postLogEntry(LogLevel level, String msg)
          Post a log entry into the underlying logging mechanism by means of the wrapped logger.
 

Method Detail

postLogEntry

public void postLogEntry(LogLevel level,
                         String msg)
Post a log entry into the underlying logging mechanism by means of the wrapped logger.

Parameters:
level - The log level to be used
msg - The message to be posted by the wrapped logger

getName

public String getName()
Get the name of the wrapped logger, which automatically is also the name of the corresponding LoggerImpl object.

Returns:
The name of the wrapped logger

getLogLevel

public LogLevel getLogLevel()
Get the log level of the wrapped logger.

Returns:
The log level of the wrapped logger

dismiss

public void dismiss()
This method will be called in case the corresponding instance of the implementing class will not be used anymore. If all deployed instances have been dismissed, the wrapped logger object may be in turn released as well (if supported by the underlying system).



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.