一个日志操作工具类。
Project description
使用方法
import logeer as log
# 日志输出到文件
log.addLogFile("test")
# 日志级别
log.trace("trace log")
log.info("info log")
log.warn("warn log")
log.debug("debug log")
log.error("error log")
log.success("success log")
# 捕获异常
@log.catch
def raise_error():
raise RuntimeError("run error")
raise_error()
log.success("我可以被执行,不会阻塞!")
raise_error()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logeer-0.0.2.tar.gz
(4.3 kB
view hashes)
Built Distributions
logeer-0.0.2-py3.9.egg
(3.6 kB
view hashes)
Close
Hashes for logeer-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a51e8096e95707494517eedcf5b07daf9c26bd701b7f18e54b775b6bdebf7922 |
|
MD5 | 0f299773627a24e1a8d5cbc200346dd0 |
|
BLAKE2b-256 | 89ada05ca8c278324416cd170c36d632184d3c7656b2ee9be0dffdc7dced7e3b |