Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 The logs are mapped from the docker to an outside path so that on docker failure the logs will still be available.


to change the log level in sdc:

  1. access the docker for FE or BE example docker exec -it <docker id > bash
  2. go to config/catalog-fe/logback.xml
  3. open the file for editing.
  4. in the file you can change the log level:

    Code Block
    <root level="INFO">
            <appender-ref ref="ASYNC_ERROR" />
            <appender-ref ref="ASYNC_DEBUG" />
            <appender-ref ref="AUDIT_ROLLING" />
            <appender-ref ref="ASYNC_TRANSACTION" />
            <if condition='property("enable-all-log").equalsIgnoreCase("true")'>
                    <then>
                            <appender-ref ref="ALL_ROLLING" />
                    </then>
            </if>
    </root>
    
    <logger name="org.openecomp.sdc" level="INFO" />
  5. change the root level to DEBUG to open all logs in SDC including the dependencies. (Note a lot of log out put is created and it is hard to folow).
  6. open the logger by a package to enable only sdc spcific logs.
  7. it is importent to note the opening the logs impacts the aplication performance so do not leav the system in debug level.
  8. the log configuration is runtime editable so no restart is required for the docker, just save the file and that is enught.