Skip to main content
12-Amethyst
November 29, 2024
Solved

Windchill RV&S 13.1.01:  Logs from Trigger scripts are not visible in server log

  • November 29, 2024
  • 1 reply
  • 1241 views

 Logs from Trigger scripts are not visible in server log
We wrote the logs in trigger script same as given in the ptc help document e.g. function print(msg, level) {
if (level == null) level = 5;
Packages.mks.util.Logger.message("MYTRIGGER", level, msg);
}

but when we run the script, these logs are not visible in server logs.

Best answer by JoeBartlett

That code only tells the RV&S server to output the log lines to the MYTRIGGER category. You then need to enable that logging category like you do with any other:

im logging --category=MYTRIGGER --on

1 reply

21-Topaz I
December 1, 2024

That code only tells the RV&S server to output the log lines to the MYTRIGGER category. You then need to enable that logging category like you do with any other:

im logging --category=MYTRIGGER --on

12-Amethyst
December 2, 2024

Thank you for help, it's working now.