diff options
Diffstat (limited to 'Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging')
-rw-r--r-- | Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging new file mode 100644 index 0000000..df0a9b4 --- /dev/null +++ b/Emacs/.config/emacs/.config/yasnippet/snippets/python-mode/logging @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: logging +# key: log +# uuid: log +# -- +logger = logging.getLogger("${1:name}") +logger.setLevel(logging.${2:level}) |