Type an SLF4J logger declaration
Type an SLF4J logger declaration
Answer
private static final Logger log = LoggerFactory.getLogger(OrderService.class);
One static final logger per class is the standard idiom. Passing the class literal means log messages automatically identify which class emitted them, with no extra code.