Scheduled jobs

cancel
Showing results for 
Search instead for 
Did you mean: 
logs
Member II

Scheduled jobs

Hi,

 I have created scheduled jobs with alfresco 5.2 using SDK and deployed in ACS 6.1. able to see the job in admin console and its trigger also updating properly. I have added loggers in the job but it's not printing in alfresco logs.

Kindly help me on it

1 Reply
abhinavmishra14
Advanced

Re: Scheduled jobs

You have to enable the logs for your custom package. For example if you have created the scheduled jobs under e.g "com.demo.job" java package. Then you need to add following in log4j.properties file:

log4j.logger.com.demo.jobs=info

OR

log4j.logger.com.demo.jobs=debug

You can also enable logs at root level of your java package if you want every class user "com.demo" package should write the logs, e.g.:

log4j.logger.com.demo=debug

Also check these threads if it helps:

https://hub.alfresco.com/t5/alfresco-content-services-forum/logger-configuration/m-p/296539#M17957

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)