79208338

Date: 2024-11-20 17:26:24
Score: 2
Natty:
Report link

If you want an easy setup add lombok to your project, then annotate your controller class with @Slf4j, and you're done. In your code call

log.info("");

No initialization of the logger is needed in this approach

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Slf4j
  • Low reputation (1):
Posted by: Arivan Amin