Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 650 Bytes

readme.md

File metadata and controls

29 lines (19 loc) · 650 Bytes

一个简单的Python日志封装类。

优点:极简的多日志类。

install

这里有关于setup.py编写的详细说明

pip install easyPlog

Usage

from easyPlog import Plog

log1 = Plog("log1.txt")
log1.log('hello','world') 

log2 = Plog("log2.txt",stream=True, msgOnly=False, cover=False) 
log2.debug('hello') # 
log2.log("fas", 'asdf', ['sadf', 12])
log2.info("fas", 12, [23, 4, 5], set(), {'sf': 9})
log2.error("fas", 12, [23, 4, 5], set(), {'sf': 9})
log2.warning("fas", 12, [23, 4, 5], set(), {'sf': 9})