nokia / OSSMediator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the posibility to change the logging verbosity

33Fraise33 opened this issue · comments

Hello,

In the mediator and elasticsearch logs we notice that there are quite some logs with level=info.
It would be handy to be able the logging level in the configuration files of both services.

Hi @33Fraise33,

MediatorCollector and ElasticSearchPlugin has below option to change logging lovel:
-log_level int
Log Level (default 4), logger level in collector.log file. Values: 0 (PANIC), 1 (FATAl), 2 (ERROR), 3 (WARNING), 4 (INFO), 5 (DEBUG)

You can add log_level option as per your need.

If you are using Collector and ElasticSearchPlugin as service, please add log_level option to the following line:

ExecStart=COLLECTOR_PATH/bin/collector

ExecStart=PLUGIN_PATH/bin/elasticsearchplugin

Thanks I have implemented this.