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

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......")

img.png

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.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

ykenan_log-0.0.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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