Blog Archives

Java: Custom logger factory that automatically infers the class name

In this post I show how you can declare loggers like this: There is no argument to the MyLoggerFactory::getLogger method. Contrast that to the normal way to declare a logger: This is business as usual. But have you ever made

Tagged with: ,
Posted in Java SE

Spring Boot: Show all logging events for one Web request only

In this post I show how you for a single Web request can make your Spring Boot application dump all log statements on all categories (TRACE, DEBUG, INFO, WARN, ERROR). Everything – but only for the specific Web request that you care

Tagged with: ,
Posted in Spring