on ‎2015 Aug 27 10:57 PM
Hi SDNites,
I am looking to add
a. trace
b. audit log using,
1. UDF
2. JAVA Mapping.
Can you please give me sample example to implement the same.
Regards,
Abhi
Request clarification before answering.
Thanks for your responses.
I understand the usage of addInfo and addWarning. Can you please let me know what is the use of addDebugMessage.
Usage of the above traces messages is only to track any error in PRD. Also we can put these messages at the points which will help us in understanding the last success record so we can identify the correct record which is creating the problem. Please correct me if I am wrong.
Also if there is a sample scenario displaying the use of above parameters efficiently if it will be of much help.
Regards,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
If we add DebugMessage(some text) in the udf and when you execute the mapping part with some test data. Then you can find that information in the logs in the trace level(option Debug) of the execution happened.
The marked one is the text which i have written in the trace.addDebugMessage() in the udf.
Even you don't have any text using trace object in the udf, if you jsut select the relevant trace level options at the trace in the test tab, it just shows the action pertaining to the trace level and displays the same in the pop up window when you test with a test data.
If you select the level Debug in the trace, then it's just like when you debug any code, you will just traverse through each line, it is the same way here. Normally we won't use this method of the trace frequently until and unless there is a need to go.
Just play around these and you can explore yourself on this.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.