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 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
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.1.2.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file ykenan_log-0.1.2.tar.gz
.
File metadata
- Download URL: ykenan_log-0.1.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d6ec21c93119556c4571640e8593d1183b5f39967d90acceab4a4bbe3348019 |
|
MD5 | 87a84a80877af2eaab35f8aa1e5e3468 |
|
BLAKE2b-256 | 6c83ad8c98732555d0b3de793bb0aa1c8a27755b7b587e97f6eec77b67d455f2 |
File details
Details for the file ykenan_log-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ykenan_log-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.6 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 | 57ee1dde173137256fd0b67d089fbf0107e245b2a6f22adf0a31d44ef7013bc5 |
|
MD5 | 365638bf4463569517fed6eca1b56689 |
|
BLAKE2b-256 | 038b7705da7396c39230fe9dc8676f022b0d32081a7fa8d50c06583895776676 |