Skip to content

Instantly share code, notes, and snippets.

@ddaws
Last active August 29, 2015 13:56
Show Gist options
  • Save ddaws/9166765 to your computer and use it in GitHub Desktop.
Save ddaws/9166765 to your computer and use it in GitHub Desktop.
I like to place this header at the top of all of my python modules.
'''!
'''
from __future__ import (
print_function,
unicode_literals,)
__author__ = 'Dawson Reid <[email protected]>'
import logging
class Foo(object):
'''! My Minimum Class
This is the minimum I would be willing to place within a
class. I believe every class should at least have a propper
logging mechanism.
'''
def __init__(self):
self.logger = logging.getLogger(str(self))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment