Hi Marten
Just created a project
and there is no logging at all in the generated classes.
I am working with STS 3.0.0, I just checked my two Spring Integration Simple templates projects, and for both, they have the Main class and ..
Code:
package com.manuel.jordan;
import java.util.Scanner;
import org.apache.log4j.Logger;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.manuel.jordan.service.StringConversionService;
/**
* Starts the Spring Context and will initialize the Spring Integration routes.
*
* @author Your Name Here
* @version 1.0
*
*/
public final class Main {
private static final Logger LOGGER = Logger.getLogger(Main.class);
private Main() { }
/**
* Load the Spring Integration Application Context
*
* @param args - command line arguments
*/
public static void main(final String... args) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info("\n========================================================="
+ "\n "
+ "\n Welcome to Spring Integration! "
+ "\n "
+ "\n For more information please visit: "
+ "\n http://www.springsource.org/spring-integration "
+ "\n "
+ "\n=========================================================" );
}
...
So I suspect that the only need for log4j is so that there is some output.
Seems a contradiction with your first sentence, in blue above
Yes, for this case, the Main class.
I think in STS 2.9.1 logging was included in some pre defined service classes.
It also dependends on an older version (3.0) of spring, so that needs an upgrade to...
Agree.
Tell me, this happen in your STS 3.1.0?