Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Logging levels in RQM

 Hello,

I'm executing python scripts with RQM using command line test scripts.
I'm using a common Python Logger that use this logging convention:

ERROR = 40

INFO = 20

WARNING = 30

DEBUG = 10

I'm executing my python script through a test suite on a machine with a CLA (Command Line Adapter) installed on it and I see that even though the script passes with a return code = 0, the test suite result has an RQM .err log with all the INFO prints, as if all my python INFO log messages are translated to ERROR messages in RQM and fail the test suite for no reason.

does someone know if RQM has a logging system that I can access in order to align its log levels with my Python log levels?

 

0 votes



One answer

Permanent link

Hi, Sara

There are exit codes  in CLA you can map to python logger:

https://jazz.net/library/article/809#MapCodes

0 votes

Comments

It's not the exit code that I see a problem with, but the INFO log messages from within my Python script that are interpreted as ERROR messages and are printed to RQM .err log instead of to RQM .output log.

if there is a solution to print the whole script's log messages (from all log levels) to the .output log, that would be the best.
thanks for your quick response! 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,132

Question asked: May 14 '17, 9:11 a.m.

Question was seen: 2,530 times

Last updated: May 15 '17, 2:08 a.m.

Confirmation Cancel Confirm