For logging purposes, I\'d like to create a logger that automatically adds the current session\'s ID to logged lines. For logged in users this isn\'t a problem:
More easiest way is:
@GetMapping(path = "/foo") public void foo(HttpSession session) { String sessionId = session.getId(); }