summaryrefslogtreecommitdiffstats
path: root/docs/sections/services/pm-subscription-handler/logging.rst
blob: f24fdf0abbe66981c4a939148ceaf8eddcc14ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

.. _Logging:

The PMSH logs will be rotated when the log file reaches 10Mb and a single backup will be kept,
with a maximum of 10 back ups.

Logging
=======

The PMSH application writes logs at INFO level to STDOUT, and also to the following file:

.. code-block:: bash

    /var/log/ONAP/dcaegen2/services/pmsh/application.log

To configure PMSH log level, the configuration yaml needs to be altered:

.. code-block:: bash

        vi /opt/app/pmsh/log_config.yaml

onap_logger level should be changed from INFO to DEBUG in order to enable debug logs to be
captured. This will affect both STDOUT logs and the logs written to application.log file

.. code-block:: yaml

    loggers:
        onap_logger:
            level: INFO