Meow Log Tool
A tool to help you create logger which print to file, console or use Loggly
import sys
from meowlogtool import log_util
loggly_api = "YOUR-API-OF-LOGGLY.COM"
if __name__ == "__main__":
# log to console and file
logger1 = log_util.create_logger("temp_file", print_console=True)
logger1.info("LOG_FILE") # log using logger1
# log to console, file and loggly.com
logger2 = log_util.create_logger("loggly", print_console=True, use_loggly=True, loggly_api_key=loggly_api)
logger2.info("Log from python")
# attach log to stdout (print function)
s1 = log_util.StreamToLogger(logger1)
sys.stdout = s1
# anything print to console will be log
print ('I am Pusheen the cat')
a = 1234
print ('I eat 3 shortcakes already. It is too short')
print ('cost = ', a)
html_log = log_util.up_gist('doggy.log', 'test_doggy', 'test_doggy')
print('link on gist %s'%(html_log))
Metadata
Release files for meowlogtool 0.1.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 | Actions |
|---|---|---|---|---|
| meowlogtool-0.1.7.tar.gz | 4.1 kB | Without provenance | Details for meowlogtool-0.1.7.tar.gz |
Release files / meowlogtool-0.1.7.tar.gz
| Download URL | meowlogtool-0.1.7.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa2ccfa7aa6e09a4e78c569f67104d76fb7cc5895d227ac10d0ee445a4e4d641
|
|
BLAKE2b-256 checksum How to use checksums |
94e6f52dd896ecf2af370023b3b4097bd5283ffdcd41e27dee9a13a18a32ca03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for meowlogtool 0.1.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.