Skip to main content

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

python -m pip install -r requirements.txt
py -m build
py -m twine upload --repository testpypi 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.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

ykenan_log-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file ykenan_log-0.1.0.tar.gz.

File metadata

  • Download URL: ykenan_log-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for ykenan_log-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ad017fc7d03429390784fe80da30c58b06373fb0d30480d018d5e969b3b39389
MD5 6399aaf71356db0d78347e5c085b092f
BLAKE2b-256 2c8ce0e1fe72036a9c6e5328babf9648241f9e54046669b241cdc1f2a10282ae

See more details on using hashes here.

File details

Details for the file ykenan_log-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ykenan_log-0.1.0-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

Hashes for ykenan_log-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e54196f25bf4eeaac49a51dfa55bbb7577c3631008618ef4a089ee5a58e6708d
MD5 230ab9b6a1a2d3757eb5949bc31b7062
BLAKE2b-256 cc6c55826a9c5f5fa8d974716e4c7404eee2bae096d64064b3be7b0527c10c50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page