Created
April 16, 2013 22:49
-
-
Save agaerig/5400325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| from datetime import datetime | |
| from django.core.management.base import NoArgsCommand | |
| logging.basicConfig(level=logging.INFO) | |
| log = logging.getLogger('testlogger') | |
| class Command(NoArgsCommand): | |
| def handle_noargs(self, **options): | |
| log.info('daroo roolz at: %s' % datetime.now()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment