Flags for controlling cpptest.log output

Grigori TrofimovGrigori Trofimov Posts: 78 ✭✭


Are there any flags that can be used when executing cpptestcli Static Analysis from the command line to suppress various messages from from the cpptest.log?

For example INFO and DEBUG messages to NOTbe output to the log file.


  • Grigori TrofimovGrigori Trofimov Posts: 78 ✭✭
    edited May 2017

    One way I found to do this:

    In the /etc there is a file called logger.xml
    In the following block change this value:

    <appender name="FILE_CPPTEST" class="org.apache.log4j.FileAppender">
        <param name="Threshold" value="all"/>
        <param name="File" value="${cpptest.rolling.log.file}"/>
        <param name="Append" value="true"/>
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%d{ISO8601} [%p] %m at %l%n"/>

    The option are trace, debug, warn, error, and fatal. I have tried warn and it seemed to do the trick.

Sign In or Register to comment.