cron job groovy script logging -
i set cron job call groovy script. in groovy script use "ch.qos.logback" logging.
if run script manually, logging works fine, when running cron job, there not output log file.
has seen similar issue? ahead!
since there exact error, try see if:
is cron job running same user 1 running script with.
the directory/file permissions affect log file generation, verify that.
the path when script , when cron jobs runs may different , hence log file may produced @ different place (if using relative path log file)
try logging stdout (console appender) , check cron's log (location depending on os using var/log/syslog or var/log/cron or whatever configured)
Comments
Post a Comment