org.apache.myfaces.shared.trace
Class TracingSupport

java.lang.Object
  extended by org.apache.myfaces.shared.trace.TracingSupport

public class TracingSupport
extends java.lang.Object

Support class for tracing method calls providing params, exceptions and return types

Version:
$Revision: 676197 $ $Date: 2008-07-12 11:07:17 -0500 (Sat, 12 Jul 2008) $
Author:
Mathias Broekelmann (latest modification by $Author: skitching $)

Constructor Summary
TracingSupport()
           
TracingSupport(java.lang.Class clazz)
           
TracingSupport(java.util.logging.Logger logger)
           
TracingSupport(java.lang.String className)
           
 
Method Summary
 java.util.logging.Level getLevel()
           
 java.util.logging.Logger getLogger()
           
 java.lang.String getSourceClass()
           
 void setLevel(java.util.logging.Level level)
           
 void setLogger(java.util.logging.Logger logger)
           
 void setSourceClass(java.lang.String className)
           
<T> T
trace(java.lang.String methodName, Closure<T> closure)
           
<T> T
trace(java.lang.String methodName, Closure<T> closure, java.lang.Object... params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TracingSupport

public TracingSupport()

TracingSupport

public TracingSupport(java.lang.Class clazz)

TracingSupport

public TracingSupport(java.lang.String className)

TracingSupport

public TracingSupport(java.util.logging.Logger logger)
Method Detail

getLevel

public java.util.logging.Level getLevel()
Returns:
the log level

setLevel

public void setLevel(java.util.logging.Level level)
Parameters:
level - the log level to use

trace

public <T> T trace(java.lang.String methodName,
                   Closure<T> closure)

trace

public <T> T trace(java.lang.String methodName,
                   Closure<T> closure,
                   java.lang.Object... params)

getLogger

public java.util.logging.Logger getLogger()

setLogger

public void setLogger(java.util.logging.Logger logger)
Parameters:
logger - the logger to set

getSourceClass

public java.lang.String getSourceClass()
Returns:
the className

setSourceClass

public void setSourceClass(java.lang.String className)
Parameters:
className - the className to set


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.