Example usage for org.apache.commons.logging Log info

List of usage examples for org.apache.commons.logging Log info

Introduction

In this page you can find the example usage for org.apache.commons.logging Log info.

Prototype

void info(Object message);

Source Link

Document

Logs a message with info log level.

Usage

From source file:org.pentaho.test.platform.web.SessionIT.java

public void testUserSessionWithOutAuthentication() {
    startTest();/* w ww  . j  a  v a 2 s. c om*/
    SimpleParameterProvider parameters = new SimpleParameterProvider();
    parameters.setParameter("actionname", "ViewAction"); //$NON-NLS-1$ //$NON-NLS-2$
    UserSession usession = new UserSession("Admin", Locale.US, parameters); //$NON-NLS-1$
    Log log = usession.getLogger();
    usession.setActionName("ViewAction");
    usession.doStartupActions(parameters);
    log.info("Session is active"); //$NON-NLS-1$
    assertEquals(usession.getActionName(), "ViewAction"); //$NON-NLS-1$

    finishTest();
}

From source file:org.programmatori.domotica.own.server.ClientConnection.java

public void logSignal(SCSMsg msg, boolean isSend) {
    Log log = LogFactory.getLog("org.programmatori.domotica.own.message");

    String direction = (isSend ? "TX MSG:" : "RX MSG:");

    log.info(getId() + "-" + direction + msg.toString());
}

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

/**
 * Trace message.//ww  w . j  ava2s  .com
 *
 * @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   message         Message.
 */
public static void info(final Class tracingClass, final Object tracingObject, final String method,
        final String message) {
    if (traceOn) {
        final Log log = LogFactory.getFactory().getInstance(tracingClass);
        if (log.isInfoEnabled()) {
            log.info("." + method + " " + message);
        }
    }
}

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

/**
 * Trace method message.//w w  w  . ja  v  a2 s .c  om
 *
 * @param   tracingClass    Class that wants to make a trace entry.
 * @param   method          Method of that class.
 * @param   message         Message.
 */
public static void info(final Class tracingClass, final String method, final String message) {
    if (traceOn) {
        final Log log = LogFactory.getFactory().getInstance(tracingClass);
        if (log.isInfoEnabled()) {
            log.info("." + method + " " + message);
        }
    }
}

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

/**
 * Parameter information.//  w ww. j a  v  a2s  .c  om
 *
 * @param   tracingClass    Class that wants to make a trace entry.
 * @param   tracingObject   Instance that wants to make an info entry.
 * @param   method          Method of that object.
 * @param   param           Parameter to trace.
 * @param   value           Value of parameter.
 */
public static void paramInfo(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.isInfoEnabled()) {
            log.info("." + method + " " + param + "=" + value);
        }
    }
}

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

/**
 * Parameter information.//from  ww  w  .  ja va  2s .c o m
 *
 * @param   tracingClass    Class that wants to make an info entry.
 * @param   method          Method of that class.
 * @param   param           Parameter to trace.
 * @param   value           Value of parameter.
 */
public static void paramInfo(final Class tracingClass, final String method, final String param,
        final Object value) {
    if (traceOn) {
        final Log log = LogFactory.getFactory().getInstance(tracingClass);
        if (log.isInfoEnabled()) {
            log.info("." + method + " " + param + "=" + value);
        }
    }
}

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

/**
 * Parameter information./*w  ww .  j  a  v  a 2s .  c  o m*/
 * @param   tracingClass    Class that wants to make an info entry.
 * @param   tracingObject   Instance that wants to make an info entry.
 * @param   method          Method of that object.
 * @param   param           Parameter to trace.
 * @param   value           Value of parameter.
 */
public static void paramInfo(final Class tracingClass, final Object tracingObject, final String method,
        final String param, final int value) {
    if (traceOn) {
        final Log log = LogFactory.getFactory().getInstance(tracingClass);
        if (log.isInfoEnabled()) {
            log.info("." + method + " " + param + "=" + value);
        }
    }
}

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

/**
 * Parameter information.//from   w  ww  . ja  v  a 2  s. c o  m
 *
 * @param   tracingClass    Class that wants to make an info entry.
 * @param   method          Method of that class.
 * @param   param           Parameter to trace.
 * @param   value           Value of parameter.
 */
public static void paramInfo(final Class tracingClass, final String method, final String param,
        final int value) {
    if (traceOn) {
        final Log log = LogFactory.getFactory().getInstance(tracingClass);
        if (log.isInfoEnabled()) {
            log.info("." + method + " " + param + "=" + value);
        }
    }
}

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

/**
 * Parameter information./*  ww w  .  j  a  v a2s. c  om*/
 * @param   tracingClass    Class that wants to make an info entry.
 * @param   tracingObject   Instance that wants to make an info entry.
 * @param   method          Method of that object.
 * @param   param           Parameter to trace.
 * @param   value           Value of parameter.
 */
public static void paramInfo(final Class tracingClass, final Object tracingObject, final String method,
        final String param, final boolean value) {
    if (traceOn) {
        final Log log = LogFactory.getFactory().getInstance(tracingClass);
        if (log.isInfoEnabled()) {
            log.info("." + method + " " + param + "=" + value);
        }
    }
}

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

/**
 * Parameter information.// www .j  a  v  a2s. com
 *
 * @param   tracingClass    Class that wants to make an info entry.
 * @param   method          Method of that class.
 * @param   param           Parameter to trace.
 * @param   value           Value of parameter.
 */
public static void paramInfo(final Class tracingClass, final String method, final String param,
        final boolean value) {
    if (traceOn) {
        final Log log = LogFactory.getFactory().getInstance(tracingClass);
        if (log.isInfoEnabled()) {
            log.info("." + method + " " + param + "=" + value);
        }
    }
}