Print and save a simple log to a file
Project description
ykenan_log
Print and save a simple log to a file
pip install --upgrade build -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install --upgrade twine -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
py -m build
twine check dist/*
twine upload dist/*
Use
install
pip install coloredlogs
pip install ykenan_log
use
# -*- coding: utf-8 -*-
import ykenan_log
logger = ykenan_log.Logger("log")
if __name__ == '__main__':
print("run...")
logger.debug("info......")
logger.info("info......")
logger.warn("info......")
logger.error("info......")
Project details
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
ykenan_log-0.0.2.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file ykenan_log-0.0.2.tar.gz
.
File metadata
- Download URL: ykenan_log-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8add97588bad8853d695f9d92f339b02869e5f7785948f6c07048a858c49fca |
|
MD5 | 30ad1077417de57b2f9000b0e61f8b4f |
|
BLAKE2b-256 | eb38e791ae06a9c02d3378b996ec425884215ec7814ea3e704216bb729188338 |
File details
Details for the file ykenan_log-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ykenan_log-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb1a836acab7151b26d0f4cebcc369611393fa3dfa9063e4f45b453d25c08a31 |
|
MD5 | 7f707b94d72520ee5842708a54063544 |
|
BLAKE2b-256 | b105c12899629dcf84b0f5fe351f980ebb95afddc91ca81b14e9d77149c14221 |