Example usage for org.apache.commons.logging LogFactory getFactory

List of usage examples for org.apache.commons.logging LogFactory getFactory

Introduction

In this page you can find the example usage for org.apache.commons.logging LogFactory getFactory.

Prototype

@Deprecated
public static LogFactory getFactory() 

Source Link

Document

This method only exists for compatibility with unusual Commons Logging API usage like e.g.

Usage

From source file:org.qedeq.base.trace.Trace.java

/**
 * Trace object.//from  w  ww  .  ja  va 2s  .  co  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   object          Object to trace.
 */
public static void trace(final Class tracingClass, final Object tracingObject, 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 object./*from   ww w . j a  v  a2s.co 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./*from   ww w  .  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.
 * @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 w  w w.jav  a2  s  .  c om
 *
 * @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 fatal 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 w w w.jav  a2  s .  c o m*/
public static void fatal(final Class tracingClass, final Object tracingObject, final String method,
        final String description, final Throwable throwable) {
    final Log log = LogFactory.getFactory().getInstance(tracingClass);
    log.fatal("." + method + " " + description, throwable);
}

From source file:org.qedeq.base.trace.Trace.java

/**
 * Trace fatal 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.
 *///from   w w w. j  a va 2s  .c  o m
public static void fatal(final Class tracingClass, final String method, final String description,
        final Throwable throwable) {
    final Log log = LogFactory.getFactory().getInstance(tracingClass);
    log.fatal("." + 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   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  a v  a 2s. com
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  ww .  j  a  v a2 s .c om
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.
 *///w  w  w. ja v a  2  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 www  . j a va  2s. c  o m*/
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");
        }
    }
}