cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduled jobs

logs
Champ in-the-making
Champ in-the-making

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 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

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)