List of usage examples for org.apache.commons.logging Log isDebugEnabled
boolean isDebugEnabled();
From source file:org.qedeq.base.trace.Trace.java
/** * Trace object.//from ww w . j a v a2 s . c o m * * @param tracingClass Class that wants to make a trace entry. * @param method Method of that class. * @param object Object to trace. */ public static void trace(final Class tracingClass, final String method, final Object object) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + object); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace throwable./* w w w . j a v a2 s . c o m*/ * * @param tracingClass Class that wants to make a trace entry. * @param tracingObject Instance that wants to make a trace entry. * @param method Method of that object. * @param throwable Throwable to trace. */ public static void trace(final Class tracingClass, final Object tracingObject, final String method, final Throwable throwable) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + throwable, throwable); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace throwable.//from ww w. ja va 2s. c o m * * @param tracingClass Class that wants to make a trace entry. * @param method Method of that class. * @param throwable Throwable to trace. */ public static void trace(final Class tracingClass, final String method, final Throwable throwable) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + throwable, throwable); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace throwable and extra description. * * @param tracingClass Class that wants to make a trace entry. * @param tracingObject Instance that wants to make a trace entry. * @param method Method of that object. * @param description Further information. * @param throwable Throwable to trace. *///from ww w .j ava 2 s . c om public static void trace(final Class tracingClass, final Object tracingObject, final String method, final String description, final Throwable throwable) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + description, throwable); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace throwable and extra description. * * @param tracingClass Class that wants to make a trace entry. * @param method Method of that class. * @param description Further information. * @param throwable Throwable to trace. */// w w w. j a va 2 s.com public static void trace(final Class tracingClass, final String method, final String description, final Throwable throwable) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + description, throwable); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace method begin. Should be followed by an analogous * {@link #end(Class, Object, String)} call. * * @param tracingClass Class that wants to make a trace entry. * @param tracingObject Instance that wants to make a trace entry. * @param method Method of that object. *//*from w w w . j a va2 s. c o m*/ public static void begin(final Class tracingClass, final Object tracingObject, final String method) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + "begin"); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace method begin. Should be followed by an analogous {@link #end(Class, String)} call. * * @param tracingClass Class that wants to make a trace entry. * @param method Method of that class. *//*from w w w . j a va 2 s .c om*/ public static void begin(final Class tracingClass, final String method) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + "begin"); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace method end.//from w ww. ja v a 2 s . c o m * * @param tracingClass Class that wants to make a trace entry. * @param tracingObject Instance that wants to make a trace entry. * @param method Method of that object. */ public static void end(final Class tracingClass, final Object tracingObject, final String method) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + "end"); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace method end.//from ww w .j a va 2s. c o m * * @param tracingClass Class that wants to make a trace entry. * @param method Method of that class. */ public static void end(final Class tracingClass, final String method) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + "end"); } } }
From source file:org.qedeq.base.trace.Trace.java
/** * Trace parameter.//from w w w . j a v a 2s . c o m * * @param tracingClass Class that wants to make a trace entry. * @param tracingObject Instance that wants to make a trace entry. * @param method Method of that object. * @param param Parameter to trace. * @param value Value of parameter. */ public static void param(final Class tracingClass, final Object tracingObject, final String method, final String param, final Object value) { if (traceOn) { final Log log = LogFactory.getFactory().getInstance(tracingClass); if (log.isDebugEnabled()) { log.debug("." + method + " " + param + "=" + value); } } }