Groups
Groups
Sign in
Groups
Groups
APScheduler
Conversations
About
Send feedback
Help
How to get log from APScheduler ?
1,887 views
Skip to first unread message
卓然 段
unread,
Apr 19, 2012, 5:00:46 AM
4/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
2/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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