Print and save a simple log to a file
Project description
ykenan_log
Print and save a simple log to a file
This is a simple log package. You can see Github-ykenan_log
add requirements.txt
py -m pip install -r requirements.txt
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("name", "log")
if __name__ == '__main__':
print("run...")
logger.debug("info......")
logger.info("info......")
logger.warn("info......")
logger.error("info......")
output
run...
2023-03-17 09:21:36 root name[34768] DEBUG info......
2023-03-17 09:21:36 root name[34768] INFO info......
2023-03-17 09:21:36 root name[34768] WARNING info......
2023-03-17 09:21:36 root name[34768] 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.1.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for ykenan_log-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12bfc5857994951d3a2ab98d621f2a0ad8809069cb3b666f9f390f35bc83508d |
|
MD5 | 1e58dd10f5047dc945f661c4f5438ea4 |
|
BLAKE2b-256 | 36b2b2284b5350704275892dadadea5eebfbcae18c94183ddaf1b02c85f953f8 |