Created
January 18, 2013 09:52
-
-
Save douglarek/4563515 to your computer and use it in GitHub Desktop.
This file contains 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
#! /usr/bin/env python | |
# coding: utf-8 | |
import logging | |
from datetime import datetime | |
import time | |
if __name__ == '__main__': | |
logging.basicConfig(level = logging.DEBUG, | |
format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
logger = logging.getLogger('logging...') | |
logger.debug('Now time: %s' % datetime.fromtimestamp(time.time())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment