Log-Message via Job Scheduler activity

Hi,

I’m trying to trigger a log message in Pega logs via a Job Scheduler activity. In the tracer I could see Log-Message step is executed but it’s not visible in the Pega logs.. But if I’m not wrong in a previous attempt I could see another log message executed via the same Job Scheduler activity. Not sure why this time I’m not able to see the log message.

Any solutions?

Thank You.

What logging level have you configured in both cases (the one where the log message was visible and the one where it isn’t)

I’ve used “Error” in both the scenarios. With “InfoForced” also it did not work.

This is usually one of three things:

  • the job is running on a background node,
  • the logger is filtering the message, or
  • the step is executing but the message is not being written where you expect.

Job Scheduler log output may not appear in the Dev Studio logs because the job often runs on a different node, so you need to check the logs for the node where the scheduler actually executed.

Confirm which node type is executing the Job Scheduler, especially if it is configured for background processing nodes and use Admin Studio to trace the job execution and inspect the actual step messages and any hidden errors.
Also, the best place to look at all the logs across all nodes in the system in via PDC and not via your Dev Studio!

PDC Event Viewer consolidates diagnostic events from all nodes in near real time and in your case PDC will show the logs when a Job Scheduler executes on a different node and the Log-Message output. It is not visible in the local Pega logs you are currently viewing