Show Details log on Scheduled Job Log when success

Hello everyone !

I’m writing custom schedule / cron on custom app, how to show log details when success on Scheduled Job Log ?

Like this screenshot, but instead detail of error log, it show success log or custom text on log