Skip to content

Instantly share code, notes, and snippets.

@j00bar
Created January 26, 2013 19:26
Show Gist options
  • Save j00bar/4643960 to your computer and use it in GitHub Desktop.
Save j00bar/4643960 to your computer and use it in GitHub Desktop.
import sys
import logging
log = logging.getLogger(__name__)
def fn(*args):
log.debug('Got %s as args' % (args,))
log.info('This function does nothing.')
log.warning("We've run out of Colombian coffee.")
sys.stderr.write('This is on stderr.\n')
sys.stdout.write('This is on stdout.\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment