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
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 hashes)
Built Distribution
Close
Hashes for ykenan_log-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb1a836acab7151b26d0f4cebcc369611393fa3dfa9063e4f45b453d25c08a31 |
|
MD5 | 7f707b94d72520ee5842708a54063544 |
|
BLAKE2b-256 | b105c12899629dcf84b0f5fe351f980ebb95afddc91ca81b14e9d77149c14221 |