title: SpringBootTest and MockMvc creating an enormous amount of console logging - how to disable?
body: <p>We're using <code>@SpringBootTest</code> with an <code>@Autowired private MockMvc mockMvc</code> attribute to mock HTTP requests to our controller classes.</p>
  
  <p>For some reason that we can't seem to determine, this is creating enormous amounts of logging for each test case, and is filling our logs with <em>thousands</em> of lines of text that looks like:</p>
  
  <pre><code>build   18-May-2019 03:09:40    Async:
  build   18-May-2019 03:09:40        Async started = false
  build   18-May-2019 03:09:40         Async result = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    Resolved Exception:
  build   18-May-2019 03:09:40                 Type = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    ModelAndView:
  build   18-May-2019 03:09:40            View name = null
  build   18-May-2019 03:09:40                 View = null
  build   18-May-2019 03:09:40                Model = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    FlashMap:
  build   18-May-2019 03:09:40           Attributes = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    MockHttpServletResponse:
  build   18-May-2019 03:09:40               Status = 200
  build   18-May-2019 03:09:40        Error message = null
  build   18-May-2019 03:09:40              Headers = {X-Content-Type-Options=[nosniff], X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate], Pragma=[no-cache], Expires=[0], X-Frame-Options=[DENY]}
  build   18-May-2019 03:09:40         Content type = null
  build   18-May-2019 03:09:40                 Body = 
  build   18-May-2019 03:09:40        Forwarded URL = null
  build   18-May-2019 03:09:40       Redirected URL = null
  build   18-May-2019 03:09:40              Cookies = []
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    MockHttpServletRequest:
  build   18-May-2019 03:09:40          HTTP Method = POST
  build   18-May-2019 03:09:40          Request URI = /api/v1/certification/applications
  build   18-May-2019 03:09:40           Parameters = {}
  build   18-May-2019 03:09:40              Headers = {Content-Type=[application/json;charset=UTF-8]}
  build   18-May-2019 03:09:40                 Body = {"applicationVersion":"1.0"}
  build   18-May-2019 03:09:40        Session Attrs = {}
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    Handler:
  build   18-May-2019 03:09:40                 Type = &lt;redacted&gt;
  build   18-May-2019 03:09:40               Method = &lt;redacted&gt;
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    Async:
  build   18-May-2019 03:09:40        Async started = false
  build   18-May-2019 03:09:40         Async result = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    Resolved Exception:
  build   18-May-2019 03:09:40                 Type = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    ModelAndView:
  build   18-May-2019 03:09:40            View name = null
  build   18-May-2019 03:09:40                 View = null
  build   18-May-2019 03:09:40                Model = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    FlashMap:
  build   18-May-2019 03:09:40           Attributes = null
  build   18-May-2019 03:09:40    
  build   18-May-2019 03:09:40    MockHttpServletResponse:
  build   18-May-2019 03:09:40               Status = 200
  build   18-May-2019 03:09:40        Error message = null
  build   18-May-2019 03:09:40              Headers = {X-Content-Type-Options=[nosniff], X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate], Pragma=[no-cache], Expires=[0], X-Frame-Options=[DENY]}
  build   18-May-2019 03:09:40         Content type = null
  build   18-May-2019 03:09:40                 Body = 
  build   18-May-2019 03:09:40        Forwarded URL = null
  build   18-May-2019 03:09:40       Redirected URL = null
  build   18-May-2019 03:09:40              Cookies = []
  </code></pre>
  
  <p>All of my internet searching and Spring Boot Test documentation reading has been fruitless. <strong>Where is this logging</strong> coming from, and how can we turn it off?</p>
  
  <p>We've scanned our code exhaustively, and are confident that we're not printing/responsible for it.</p>