eloguru: email for loguru
带邮件功能的loguru
install
- clone source
git clone https://github.com/425776024/eloguru.git
- pip
pip install eloguru
des
Loguru with mail function
带邮件功能的loguru
- setting elogger.mail_config , then all operations are the same as loguru
- then all the loguru logs will be sent to the
mailbox:
elogger.mail_config.receive_emails
config mail server
use
from eloguru import eloguru
eloguru.mail_config.sender_email = "Your email"
eloguru.mail_config.sender_email_passwd = "Your email Authorization code"
eloguru.mail_config.sender_email_mailserver = "Your email server, like: smtp.163.com"
eloguru.mail_config.sender_email_mailserver_port = "Your email server's port , like : 25"
eloguru.mail_config.title = "Your email message title , like : this is a log message title"
eloguru.mail_config.body = "Your email message content template , like : <br/>#msg<br/> (#msg Will be replaced by log message)"
eloguru.mail_config.receive_emails = [
"Your email send to Email account 1",
"Your email send to Email account 2",
]
# All operations are the same as loguru
eloguru.add('a.log', rotation='50 MB')
eloguru.add('a.log')
eloguru.error('error', email=True)
eloguru.debug('debug')
eloguru.info('info')
eloguru.success('success', email=True)
# then all the above logs will be sent to the mailbox:'eloguru.mail_config.receive_emails'
Metadata
Release files for eloguru 0.0.2
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 | Actions |
|---|---|---|---|---|
| eloguru-0.0.2.tar.gz | 5.0 kB | Without provenance | Details for eloguru-0.0.2.tar.gz |
Release files / eloguru-0.0.2.tar.gz
| Download URL | eloguru-0.0.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71c5092da3dd9e67184ffab0233698491671a04742685b7e040af5dd3349ee5b
|
|
BLAKE2b-256 checksum How to use checksums |
0ff866ae79a783b087d7d3ae0a58170b7dd1472c7d0b4538784e0d323ce43078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.9
|
Security for eloguru 0.0.2
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.