Save error messages in a variable/text file
-
- Posts: 43
- Joined: September 5th, 2016, 4:55 am
Save error messages in a variable/text file
How to save errmsg("message here") in a variable or a text file so that I can view it and analyse it later?
Re: Save error messages in a variable/text file
Dear Mussabahire,
Theses messages are already natively saved in a cspro file with csdb extension (type masm listing) in the latest beta version. Since it's a .txt friendly format, you can open it in whatever text file reader (notepad, text viewer etc). However, in the latest beta theses files aren't created by default. You must activate them in the Cspro designer via: Options---Data sources----In addition to the data sources, create a.... listing files /operator statistics log files.
We would like that the developer team record theses data in the new csdb data file for further analysis.
Here's results on my laptop for a data entry sequence:
--------------------------------------------------------------
Application C:\Users\Admin\Desktop\Machine\Application\code_machine.pen
Type ENTRY
Input Data <<CSPro DB>> C:\Users\Admin\Desktop\Machine\Data\donnees.csdb
Date Nov 10, 2016
Start Time 22:54:53
End Time 22:55:31
CSPRO Process Summary
System messages:
Number Frequency Message text
------ --------- ------------
92102 2 New case ids '%s' duplicate an existing case! Cas
92103 9 New case ids '%s'. Old ids were '%s'.
100101 1 Error connecting to server: %s
CSPRO Executor Normal End
-------------------------------------------------------------------
Best regards,
Theses messages are already natively saved in a cspro file with csdb extension (type masm listing) in the latest beta version. Since it's a .txt friendly format, you can open it in whatever text file reader (notepad, text viewer etc). However, in the latest beta theses files aren't created by default. You must activate them in the Cspro designer via: Options---Data sources----In addition to the data sources, create a.... listing files /operator statistics log files.
We would like that the developer team record theses data in the new csdb data file for further analysis.
Here's results on my laptop for a data entry sequence:
--------------------------------------------------------------
Application C:\Users\Admin\Desktop\Machine\Application\code_machine.pen
Type ENTRY
Input Data <<CSPro DB>> C:\Users\Admin\Desktop\Machine\Data\donnees.csdb
Date Nov 10, 2016
Start Time 22:54:53
End Time 22:55:31
CSPRO Process Summary
System messages:
Number Frequency Message text
------ --------- ------------
92102 2 New case ids '%s' duplicate an existing case! Cas
92103 9 New case ids '%s'. Old ids were '%s'.
100101 1 Error connecting to server: %s
CSPRO Executor Normal End
-------------------------------------------------------------------
Best regards,
G.VOLNY, a CSProuser from Haiti, since 2004
-
- Posts: 43
- Joined: September 5th, 2016, 4:55 am
Re: Save error messages in a variable/text file
In my Options, I did not see--Data sources
Re: Save error messages in a variable/text file
What version of Cspro do you use? If it's different than 7.0 beta, logs files are created by default.
Data sources is for 7.0 beta.
Regards,
Data sources is for 7.0 beta.
Regards,
G.VOLNY, a CSProuser from Haiti, since 2004