loguru-notification
loguru-notification 是一个日志输出项目,在loguru的基础集成日志输出到控制台、输出到Slack、并结合CMRESHandler把日记记录到ElasticSearch, 更容易的对日志进行分析。
Installation
1.使用python包管理工具pip 进行安装。
pip install loguru-notification
Usage
对loguru-notification进行配置,并输出日志信息。
from configlog.setlogs import Logger
logger = Logger(
webhook_url='Your Slack webhook URL', # Slack webhook URL # noqa
es_host='172.0.0.1:9200', # log on ElasticSearch host ip and port
)
if __name__ == '__main__':
logger.printout('输出到控制台')
logger.msg('输出到控制台,并写入ElasticSearch')
logger.notice('输出到控制台和Slack,并写入ElasticSearch')
Contributing
欢迎使用,如果有好的优化方法也欢迎提交修改。
使用前请做适当的测试,以确定跟您的项目完全兼容。
License
Metadata
Release files for loguru-notification 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| loguru-notification-0.0.7.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| loguru_notification-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / loguru-notification-0.0.7.tar.gz
| Download URL | loguru-notification-0.0.7.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f76549fdecb1786d858d57b38ecda3344aff9bf311db836bc74d11401dcc348a
|
|
BLAKE2b-256 checksum How to use checksums |
0a8ba6dd34e14474652049f13857f90baf877b56451f8d28da24d88ddb163ffd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / loguru_notification-0.0.7-py3-none-any.whl
| Download URL | loguru_notification-0.0.7-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2c18494964b4b09d3a29fca9ef036846dc0a86751e7c37dad1225b288bdb269
|
|
BLAKE2b-256 checksum How to use checksums |
6ca0c53bfae1778c807613742c400cd8399bfd9b4c77c8dadaf26aa20c095be2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Security for loguru-notification 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.