!anyone
Quite possibly. Why do you ask?
i followed tutorial and tried to log log.info("test"); but i am getting cannot find variable called log error
Almost everyone uses it. Like 99% of the libraries do logging through slf4j. > cannot find variable called log Obviously, you need to declare variable/field "log" and initialize it properly. Two standard ways - using lombok, and adding @Slf4j annotation to the class where you want your logger being added - manually, by adding variable explicitly public class MyClass { private static final Logger log = LoggerFactory.getLogger(MyClass.class);
Обсуждают сегодня