Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Configuration jetty server logging.

You say you have these 2 in your classpath.

Can you be more specific?
What directory?

Alternatively, as you mentioned you are using Jetty Embedded, you can simply call this, before you initialize anything else in jetty.

import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Slf4jLog;

    Log.setLog(new Slf4jLog());

That does the same thing as what is doing.

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Tue, Nov 5, 2013 at 9:40 AM, Rajasekar Elango <relango@xxxxxxxxxxxxxx> wrote:
We would like to make jetty use log4j configuration for logging. I am using embedded jetty within spring based on this tutorial. I am followed this documentation to include all required slf4j and log4j dependencies in classpath. 

Basically I added to classpath with following configuration.


I also have in classpath

I have following maven dependencies to include required jars.




But when I start up the jetty server via spring, the log output is always logged to StdErr and it's not logging to log file I configured in Am  I missing anything? Is there any debugging I can turn on to troubleshoot ..? How can I get this to work?


jetty-users mailing list

Back to the top