com.sdm.quasar.client.core.common.logging.impl
Class DefaultLoggingInformationCalculator

java.lang.Object
  extended bycom.sdm.quasar.client.core.common.logging.impl.DefaultLoggingInformationCalculator
All Implemented Interfaces:
CallerInformationCalculator

public class DefaultLoggingInformationCalculator
extends java.lang.Object
implements CallerInformationCalculator

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
DefaultLoggingInformationCalculator()
          Creates a new DefaultLoggingInformationCalculator.
 
Method Summary
 CallerInformation calculateCallerInformation(int correctStackDepth, java.lang.String loggerDomainName)
          Calculates the CallerInformation, about the caller of the logging call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLoggingInformationCalculator

public DefaultLoggingInformationCalculator()
Creates a new DefaultLoggingInformationCalculator.

Method Detail

calculateCallerInformation

public CallerInformation calculateCallerInformation(int correctStackDepth,
                                                    java.lang.String loggerDomainName)
Description copied from interface: CallerInformationCalculator
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.

Specified by:
calculateCallerInformation in interface CallerInformationCalculator
Parameters:
correctStackDepth - the value to correct the execution stack of (in means of the caller)
loggerDomainName - a optional logger domain name, which is provided by the logger caller
Returns:
the CallerInformation with information about the caller of the log method
See Also:
CallerInformationCalculator.calculateCallerInformation(int, java.lang.String)