Logback is intended as a successor to the popular log4j project, picking up where log4j leaves off. Configuring the logback to bootstrap in the project is describe here. For more information, see the reference manual.


<!-- Logging -->

Configuring logback

Create a xml file with named logback.xml under resource directory of the web application.


Now to log out,

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

class MyApp {
	private static final Logger log = LoggerFactory.getLogger(Myapp.class);

	public void doSomething() {
		log.debug("**** Recieved request ****");