Mercurial > hg > Feedworm
view feedupdate.py @ 219:38d1898e7d82
include the time when logging
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 27 Apr 2014 06:19:04 +0200 |
parents | bb3c851b18b1 |
children | a383abe2e81a |
line wrap: on
line source
#!/usr/bin/env python # -*- coding: utf-8 -*- import BackendFactory import logging if __name__ == "__main__": logFormat = '%(asctime)s ' + logging.BASIC_FORMAT logging.basicConfig(format=logFormat, level=logging.DEBUG) backend = BackendFactory.createBackend() backend.updateAllFeeds() backend.expireFeedEntries() backend.dispose()