Skip to content

Instantly share code, notes, and snippets.

@schtobia
Last active May 8, 2018 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schtobia/9f9b964d160508c44288bd2960467884 to your computer and use it in GitHub Desktop.
Save schtobia/9f9b964d160508c44288bd2960467884 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python3
import logging
import logging.handlers
logger = logging.getLogger("foo")
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.handlers.SysLogHandler('/dev/log'))
logger.info("foobar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment