petermr / ami3

Integration of cephis and normami code into a single base. Tests will be slimmed down
Apache License 2.0
17 stars 5 forks source link

Update Log4j from 1.2.x to 2.x #45

Closed remkop closed 4 years ago

remkop commented 4 years ago

Migration from Log4j 1.2 to Log4j 2: This will change in many files :

// current
import org.apache.log4j.Logger;
...
public static final Logger LOG = Logger.getLogger(DictionaryCreationTool.class);

becomes:

// after
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
...
public static final Logger LOG = LogManager.getLogger(DictionaryCreationTool.class);

so mostly a package change. The Logger API then has some new methods that we may use later on.

remkop commented 4 years ago

I confirmed the log file is created and contains log statements; everything seems to work as expected (so far). Closing this ticket.