Go to mongodb configuration file and add following lines of code.
@Configuration
public class SpringMongoConfig extends AbstractMongoConfiguration{
static Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
static {
root.setLevel(Level.INFO);
}
}
Here class for Logger will be:
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
1 Comment(s)