How to change logging level?
dcronkite opened this issue · 0 comments
dcronkite commented
How can I alter the logging level when running Metamaplite? I'd like to set it to at least WARN in order to reduce the amount of console output when running the application, but I can't seem to change the defaults.
I tried (on 3.6.2rc8):
- Running
metamaplite.bat
but changing 'debug' to 'warn' inconfig/log4j2.xml
- Specifying the changed log4j2.xml file with both the parameters
log4j.configurationFile
andmetamaplite.log4jconfig
inmetamaplite.bat
- Passing in the
--log4jconfig
option to point toconfig/log4j2.xml
(this results in an error:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at gov.nih.nlm.nls.ner.MetaMapLite.main(MetaMapLite.java:1323)
).