Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Flags for controlling cpptest.log output
Grigori Trofimov
Posts: 83 ✭✭
in C/C++test
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.
0
Comments
-
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.
1