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.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for ykenan_log-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8d3721b6cebb01d954691f2e67a05494a3505d97af4af64535dcb23c394eab1 |
|
MD5 | 05387e8edef3f39d91fe81d27eec92c2 |
|
BLAKE2b-256 | 4c4be6b7028255501d9e0b7f54ff79bbcffb8b3995003e43a2cc60502fc81efc |