org.apache.myfaces.shared_tomahawk.trace
Class TracingSupport
java.lang.Object
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: 1151676 $ $Date: 2011-07-27 19:01:24 -0500 (Wed, 27 Jul 2011) $
- Author:
- Mathias Broekelmann (latest modification by $Author: lu4242 $)
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.