on 02-27-2017 12:01 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.