meowlogtool 0.1.7
pip install meowlogtool
Latest version
Released:
A python logger util for cat
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Thai Thien
- Tags logger, log
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Project description
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))
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Thai Thien
- Tags logger, log
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
File details
Details for the file meowlogtool-0.1.7.tar.gz
.
File metadata
- Download URL: meowlogtool-0.1.7.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2ccfa7aa6e09a4e78c569f67104d76fb7cc5895d227ac10d0ee445a4e4d641 |
|
MD5 | 4941afcda7f074c10deaacd66fd34dc8 |
|
BLAKE2b-256 | 94e6f52dd896ecf2af370023b3b4097bd5283ffdcd41e27dee9a13a18a32ca03 |