nokia / OSSMediator

BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

Add the posibility to change the logging verbosity #21

Closed 33Fraise33 closed 3 years ago

33Fraise33 commented 3 years ago

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.

soursing commented 3 years ago

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: https://github.com/nokia/OSSMediator/blob/6ee1ad408cac1c4292ea01688d2e0b3fe7506608/MediatorSetup/services_template/collector.service#L13 https://github.com/nokia/OSSMediator/blob/6ee1ad408cac1c4292ea01688d2e0b3fe7506608/MediatorSetup/services_template/elasticsearchplugin.service#L12

33Fraise33 commented 3 years ago

Thanks I have implemented this.