Skip to main content

一个日志操作工具类。

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


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)

Uploaded Source

Built Distributions

logeer-0.0.2-py3.9.egg (3.6 kB view hashes)

Uploaded Source

logeer-0.0.2-py2.py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page