cancel
Showing results for 
Search instead for 
Did you mean: 

Cronjob log result

Former Member
0 Kudos

Hi all, I have written a cronjob to populate some field automatically. Since it could fail, I'd like to log the detailed results. When I say log, I don't mean the consoleLog, but something more graphical that the business could look at.

For example, is it possible to log result in the HMC logText field or in the little frame that pops up when the cronjob is fired?

Thanks for any help.

Cheers!

Gabriele

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member704915
Participant
0 Kudos

Addition to what mentioned, what you can do is, you can add the LOGs inside the perform () method of the cron job and place try-catch block. In case of an exception, use LOG.error to print the stack trace or best is you may choose to use localized one liner message. Go to the HMC and before you run the cron job, set the log levels to error and you'll get the one liner error messages in the cron job log file.

Former Member
0 Kudos

Hi ,

If you want to find the logs related to some imports just search on console ,when your cronjob got started .Then in console you will see the immediate impex import job ,if you are doing through impex import via cronjob . If you able to find successfully that job ,then go to hmc>cronjobs there you search that job and you will able to access the log tab then download the log and examine it.

I hope got your question correctly.

Thanks

Raushan

Former Member
0 Kudos

Hi Raushan, thanks for you answer.

That could be good, but I don't know how to add my log text in that log file.

0 Kudos

Hi ,

Did you find any solution for this? I am in a similar situation.

Best regards Vivek