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

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ykenan_log-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 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.1.tar.gz
Algorithm Hash digest
SHA256 51438dfa374d3b6d9578d7986bf96722b7143693e690a1a288fd380a36865aee
MD5 39e07dce1dab7219bef64af0ff2b29b5
BLAKE2b-256 14d22204aa20f81f3a0c522757e08c20431d1f5c1208acfb6b1b1a36b07ae4e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ykenan_log-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12bfc5857994951d3a2ab98d621f2a0ad8809069cb3b666f9f390f35bc83508d
MD5 1e58dd10f5047dc945f661c4f5438ea4
BLAKE2b-256 36b2b2284b5350704275892dadadea5eebfbcae18c94183ddaf1b02c85f953f8

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