geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Weber <>
Subject Re: Logging-Framework for applications?
Date Wed, 29 Oct 2008 09:43:48 GMT

Juergen Weber wrote:
> What is the recommended logging-framework for applications running in
> Geronimo?
> Log4J? slf4j?
> I tried both, both seem to be included in the server runtime, but I saw
> only log4j output in the logs.
> Thanks,
> Juergen

Taking the sample

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Calculator implements CalculatorRemote, CalculatorLocal {

	private String myString = "foo";

	final Logger logger = LoggerFactory.getLogger(Calculator.class);

    public int sum(int add1, int add2) {
    	logger.debug("sum({} {])",add1,add2);
        return add1 + add2;

    public int multiply(int mul1, int mul2) {
    	logger.debug("multiply({} {])",mul1,mul2);
        return mul1 * mul2;


The level is DEBUG (as it seems), but in the logs I see that the ejb is
called, but not my logs.
Is there a separate Logger configuration for applications?

10:39:09,964 DEBUG [OpenEJB] invoking method sum on
calculator_ejb.jar/Calculator with identity null
10:39:09,965 INFO  [Transaction] TX Required: Started transaction
10:39:09,965 INFO  [Transaction] TX Required: Committing transaction
10:39:09,966 DEBUG [OpenEJB] finished invoking method sum. Return value:0

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message