X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fsections%2Flogging.rst;h=65d08108df2164ba59104f6225627cb1b0e88282;hb=3472d39bd861fc88c48a2f3217d73716b81f6ae3;hp=abf951f1d822dd651da4a17d942c740ed23ef10e;hpb=0c3c68ba16c8c1953247776e48072ff7668a7b02;p=oom%2Fplatform%2Fcert-service.git diff --git a/docs/sections/logging.rst b/docs/sections/logging.rst index abf951f1..65d08108 100644 --- a/docs/sections/logging.rst +++ b/docs/sections/logging.rst @@ -2,30 +2,35 @@ .. http://creativecommons.org/licenses/by/4.0 .. Copyright 2020 NOKIA -.. _cert_logs: Logging ======= -Certification Service API --------------------------- -To see console Certification Service logs use: +CertService API +--------------- +To see CertService console logs use: - Docker: .. code-block:: bash - docker logs + docker logs + + e.g. + docker logs aafcert-service - Kubernetes: .. code-block:: bash - kubectl logs + kubectl -n onap logs + + e.g. + kubectl -n onap logs $(kubectl -n onap get pods | grep cert-service | awk '{print $1}') -Console logs contain logs for logging levels from **DEBUG** to **ERROR**. +Console logs contains logs for logging levels from **DEBUG** to **ERROR**. -Certification Service logs for different logging levels are available in the container: +CertService logs for different logging levels are available in the container: - Docker: @@ -33,11 +38,17 @@ Certification Service logs for different logging levels are available in the con docker exec -it bash + e.g. + docker exec -it aafcert-service bash + - Kubernetes: .. code-block:: bash - kubectl exec -it bash + kubectl -n onap exec -it bash + + e.g. + kubectl -n onap exec -it $(kubectl -n onap get pods | grep cert-service | awk '{print $1}') bash Path to logs: @@ -51,30 +62,36 @@ Available log files: User cannot change logging levels. +.. _cert_logs: - -Certification Service Client ----------------------------- -To see console Certification Service Client logs use : +CertService client +------------------ +To see CertService client console logs use : - Docker: .. code-block:: bash - docker logs + docker logs + + e.g. + docker logs aafcert-client - Kubernetes: - CertService Client is used as init container in other components. In the following example: - - ** refers to the component that uses CertService Client as init container - - ** refers to name of init container used by the mentioned component. It can be found by executing *'kubectl descrine pod '* and looking into 'Init Containers section' + CertService client is used as init container in other components. In the following example: + - ** refers to the component that uses CertService client as init container + - ** refers to name of init container used by the mentioned component. It can be found by executing *'kubectl -n onap descrine pod '* and looking into 'Init Containers section' .. code-block:: bash - kubectl logs -c + kubectl -n onap logs -c + + e.g. + kubectl -n onap logs -c cert-service-client -| Container stops after execution, so all logs available are printed to console. +| Container stops after execution, so all available logs are printed on console. | User cannot change logging levels. Client application exits with following exit codes: