org.apache.myfaces.shared_tomahawk.trace
Class TracingSupport
java.lang.Object
   org.apache.myfaces.shared_tomahawk.trace.TracingSupport
org.apache.myfaces.shared_tomahawk.trace.TracingSupport
- public class TracingSupport 
- extends 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 $)
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TracingSupport
public TracingSupport()
TracingSupport
public TracingSupport(Class clazz)
TracingSupport
public TracingSupport(String className)
TracingSupport
public TracingSupport(Logger logger)
getLevel
public Level getLevel()
- 
- Returns:
- the log level
 
setLevel
public void setLevel(Level level)
- 
- Parameters:
- level- the log level to use
 
trace
public <T> T trace(String methodName,
                   Closure<T> closure)
- 
 
trace
public <T> T trace(String methodName,
                   Closure<T> closure,
                   Object... params)
- 
 
getLogger
public Logger getLogger()
- 
 
setLogger
public void setLogger(Logger logger)
- 
- Parameters:
- logger- the logger to set
 
getSourceClass
public String getSourceClass()
- 
- Returns:
- the className
 
setSourceClass
public void setSourceClass(String className)
- 
- Parameters:
- className- the className to set
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.