1@RestController
2public class LoggingController {
3
4 Logger logger = LoggerFactory.getLogger(LoggingController.class);
5
6 @RequestMapping("/")
7 public String index() {
8 logger.trace("A TRACE Message");
9 logger.debug("A DEBUG Message");
10 logger.info("An INFO Message");
11 logger.warn("A WARN Message");
12 logger.error("An ERROR Message");
13
14 return "Howdy! Check out the Logs to see the output...";
15 }
16}
17