my-emacs-d/elpa/yasnippet-20160924.2001/snippets/python-mode/logging
2016-10-20 10:27:10 +02:00

7 lines
132 B
Plaintext

# -*- mode: snippet -*-
# name: logging
# key: log
# --
logger = logging.getLogger("${1:name}")
logger.setLevel(logging.${2:level})