LHNCBC/metamaplite

How to change logging level?

dcronkite opened this issue · 0 comments

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' in config/log4j2.xml
  • Specifying the changed log4j2.xml file with both the parameters log4j.configurationFile and metamaplite.log4jconfig in metamaplite.bat
  • Passing in the --log4jconfig option to point to config/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)).