logging
1. Basiclogging.basicConfig(filename='./log/test.log', level= logging.DEBUG) 2. Logger - Handlerlogger = logging.getLogger("abc")logger.setLevel(logging.DEBUG)fileHandler = logging.FileHandler('./log/my.log')logger.addHandler(fileHandler) 3. formatterformatter = logging.Formatter('[%(levelname)s|%(filename)s:%(lineno)s] %(asctime)s > %(messages)s')fileHandler.setFormatter(formatter) 4. etc Handl..
python
2017. 4. 13. 17:05