Skip to content

Instantly share code, notes, and snippets.

@nobody4t
nobody4t / My emacs config file
Created October 22, 2017 02:37
I will configure my emacs on my own.
From today on, I will config my emacs with my own hands.
@nobody4t
nobody4t / Python--logging.markdown
Last active October 15, 2017 04:16
Python logging

Python-logging

日志的重要性不言而喻,特别是在debug或者排除故障过程中起着不可忽略的作用。今天我们看一下python 的标准库--logging。 你可以这么用:

import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)