How to get log from APScheduler ?

1,887 views
Skip to first unread message

卓然 段

unread,
Apr 19, 2012, 5:00:46 AM4/19/12
to APScheduler
I want log infomation when/after job excuted, how do I get those?
thanks

Sangeeth Saravanaraj

unread,
Feb 8, 2013, 12:54:48 PM2/8/13
to apsch...@googlegroups.com, dua...@gmail.com
You can use logging.basicConfig() to see the APScheduler logs. Add the following lines to your code. 

import logging

logging.basicConfig(filename='/tmp/log', level=logging.DEBUG,
        format='[%(asctime)s]: %(levelname)s : %(message)s')

Then once after you run your scheduler, you should be able to see the logs by running tail -f '/tmp/log'. For more on Python logging, please refer http://docs.python.org/2/howto/logging.html
 
Thank you,

Sangeeth
Reply all
Reply to author
Forward
0 new messages