title: Recording logins with Spring Security
body: <p>I want to log every login in my web application. I was able to access the logins which take place through <code>UsernamePasswordAuthenticationFilter</code> but I don't know how to log users who log in using remember-me functionality. I tried overriding the</p>
  
  <pre><code>createSuccessfulAuthentication(HttpServletRequest request, UserDetails user)
  </code></pre>
  
  <p>of <code>TokenBasedRememberMeServices</code>, but then logouts are recorded too, because the remember-me service re-authenticates the user.</p>