PHP I am using IBM-BPM tool, and I am trying to do the custom loggin

  • Thread starter Thread starter sandeepkumar10
  • Start date Start date
Click For Summary
The discussion revolves around an issue with custom logging in IBM-BPM, where a user named Sandeep reports that a script for logging works in other process apps and previous snapshots but fails in the current environment. The script utilizes the log4j library for logging errors. Suggestions from other participants include checking the console for errors and contacting IBM support for assistance, as the functionality should be consistent across similar configurations. The thread concludes with a note that the script is written in JavaScript, not PHP, and there is no further response from Sandeep.
sandeepkumar10
Messages
1
Reaction score
0
Hi all, I am using IBM-BPM tool. I am trying to do the custom logging. I have created a General System Service and attached the following script. It works very well in other process apps and in the previous snapshots in the same process app. But it does not work in the current environment. I am not able to figure out why is it not working. Please provide a solution if any of you had faced such problems.

Code:
Packages.org.apache.log4j.xml.DOMConfigurator.configure(tw.env.logFilePath);
var logger = Packages.org.apache.log4j.Logger.getLogger("FHG");
logger.error("sasf");

I have created the xml file and have placed in the location specified in a logFilePath variable.
Thanks,
Sandeep,
<<Moderator: Self promoting link removed.>>
 
Last edited by a moderator:
Technology news on Phys.org
Have you looked in your console for any errors? Usually things like this will error. I also would suggest reaching out to IBM, if it works on one platform, it should work on another as long as they are configured about the same way.

BTW, that's Javascript, not PHP.
 
Not much more to say here, no response from the OP. Closing thread.
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...