com.sdm.quasar.client.core.common.logging
Interface CallerInformationCalculator

All Known Implementing Classes:
DefaultLoggingInformationCalculator

public interface CallerInformationCalculator

A callback-interface used by LogManager to resolve the (full qualified) class name of a caller for logging.

Version:
1.$Revision$
Author:
Thomas Wolf

Method Summary
 CallerInformation calculateCallerInformation(int correctStackDepth, java.lang.String callerDomainName)
          Calculates the CallerInformation, about the caller of the logging call.
 

Method Detail

calculateCallerInformation

public CallerInformation calculateCallerInformation(int correctStackDepth,
                                                    java.lang.String callerDomainName)
Calculates the CallerInformation, about the caller of the logging call. To enable calculating this information (which might be relatively time-consuming, depending on implementation), a stack-depth must be provided to correct the execution stack of.

Parameters:
correctStackDepth - the value to correct the execution stack of (in means of the caller)
callerDomainName - a optional logger domain name, which is provided by the logger caller
Returns:
the CallerInformation with information about the caller of the log method