title: Spring boot logger logs nothing
body: <p>I created a Spring MVC project using Spring Boot (1.5.8.RELEASE). I picked web, jpa and mysql, and added absolutely nothing in my <code>build.gradle</code>.</p>
  
  <p>Here is the relevant part of my <code>application.yml</code>:</p>
  
  <pre><code>logging:
    level: trace
  </code></pre>
  
  <p>That's all the configuration about logging. I just want the log messages to be shown in the console, so I just omit the <code>logging.path</code>.</p>
  
  <p>And I have the controller</p>
  
  <pre><code>package com.example.controllers;
  
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  // other imports ...
  
  @RestController
  @RequestMapping("/")
  public class DummyController {
  
    private static final Logger LOGGER = 
      LoggerFactory.getLogger(DummyController.class);
  
    @GetMapping
    public void foo() {
      LOGGER.info("foo");
    }
  }
  </code></pre>
  
  <p>When I send a request to <code>/</code>, I get a <code>200 OK</code> response, but nothing appears in the log. Strangely, the log messages of Spring framework and Hibernate do appear in the console. Just my ad-hoc log messages missing.</p>
  
  <p>Then I debugged my code, and saw that the ancestor of <code>LOGGER</code> (the root of the logger tree) is a logger with log level <code>INFO</code>. That's apparently not the logger I configured. However, the official documentation of Spring doesn't tell me how to get the logger instance I want. How can I do this? Is there something wrong with my code, or do I miss something in the configuration?</p>