Setting up a logger
You've been given a log4j.properties file that contains logger settings for developers. The logging requirements for the production environment have changed.
Adding logging to a class
In Intellij IDEA, press Alt+Ctrl+Shift+S -> Global Libraries -> New Global Library -> From Maven... In the window that opens, enter the following in the search bar: org.slf4j:slf4j-api:1.7.23 -> Search (Shift+Enter). Choose where to download the logging library.
GO TO FULL VERSION