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:

  1. is cron job running same user 1 running script with.

  2. the directory/file permissions affect log file generation, verify that.

  3. the path when script , when cron jobs runs may different , hence log file may produced @ different place (if using relative path log file)

  4. 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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -