I using slf4j logging interface with JDK logger for my web service project. I have been actually using Java util logging and currently thinking of move to using slf4j with JDK logger. I have included slf4j-jdk14-1.7.12 jar file dependency in my ivy.xml file
In one of my classes, I have the following:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Example{
public static Logger logger = LoggerFactory.getLogger(Example.class);
public void sampleMethod() {
logger.info("Logging this method");
}
}
After running this class/method, I dont see any log output to either the console or to any log file. Currently the java util logging framework under use, write the logs to a file. I looked in that folder to check to see if any log files related to this class was created, but none.
Can you please help me to identify why this is not working. I read online about configuring the logging.properties. I am not sure how to do that, where to place the properties file?
Thanks in advance.