Skip to content

How to change logging level? #32

@dcronkite

Description

@dcronkite

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)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions