MID Server ms.log is not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2023 07:42 PM
I am trying log to MID Server logs file. Below is the code that I am executing from the background script. ECC Queue state is always in ready state.
var jspr = new JavascriptProbe('Demo MID Server');
jspr.setName('My Test Message'); //Any descriptive name will do
jspr.setJavascript('ms.log("TEST MESSAGE")');
jspr.create();
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2023 01:14 AM
Hello @Upender Kumar
You need to configure it.
- Run the following from MID Server > Scripts - Background:
ms.log(Packages.java.lang.System.getProperty('java.util.logging.config.file')); - If the value is null, this means that the client has overwritten the java property for defining the logging directory.
- This value is set in wrapper.conf:
wrapper.java.additional.101=-Djava.util.logging.config.file=properties/glide.properties - When investigating java errors, some solutions found state to set additional java parameters. If copied and pasted (additional.101), this could be overriding the above parameter. It may also be overridden in a custom JAR file.
- Revert the changes, or change the logging config statement to an unused parameter value.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2023 11:43 AM - edited 07-16-2023 11:44 AM
Please share screenshots for the above steps....