dotfiles/.emacs.d/snippets/python-mode/logging

7 lines
132 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- mode: snippet -*-
# name: logging
# key: log
# --
logger = logging.getLogger("${1:name}")
logger.setLevel(logging.${2:level})