Flags for controlling cpptest.log output

Grigori TrofimovGrigori Trofimov Posts: 65 ✭✭

Hello,

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.

Comments

  • Grigori TrofimovGrigori Trofimov Posts: 65 ✭✭
    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"/>
        </layout>            
      </appender>
    

    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.