title: Spring Boot Audit Logging by Example
body: <p>Almost every aspect of Spring Boot's documentation have proven to be treasure troves of copious amounts of information. That is until I get to <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-auditing.html" rel="nofollow">Chapter 50: Auditing</a>.</p>
  
  <p>I am trying to understand the 2 paragraphs that make up this entire chapter. If I'm reading it correctly, then when I run my Spring Boot app in "production mode" (that is, as a built/packaged uberjar via <code>java -jar path/to/myapp.jar</code>) then every time an access event (auth attempt/success/fail) occurs, that event will get logged/recorded somewhere.</p>
  
  <p>I haven't done <em>any</em> config whatsoever. I run my app in "prod mode" and log in. I expect to see some console/log output indicating the auth event, but I don't see any. I log out, same deal (no console output). I try to log in with a bad username, and again, nothing in the console output.</p>
  
  <ul>
  <li>Is Spring Boot recording access events somewhere else, besides console/log output? If so, where and why?</li>
  <li>Do I need to define any <code>@Beans</code> and register them with some kind of event listener? If so, can someone please provide a succinct code example?</li>
  </ul>
  
  <p>Basically I'm just looking to get Spring Boot's default audit logging pumping events to STDOUT (console). Any ideas?</p>