Skip to main content

make it easy to use log

Project description

showlog

介绍

python的log,封装了些简单的方法

安装教程

  1. 使用pip安装
  • 普通方式安装
pip3 install showlog
  • 使用阿里镜像加速安装
pip3 install showlog -i https://mirrors.aliyun.com/pypi/simple
  1. 环境安装
  • 生成依赖
pip3 freeze > requirements.txt
  • 安装依赖
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple

使用说明

  1. 导入
import showlog
  1. 简单使用
showlog.info('hello word!')
showlog.warning('this is warning')
showlog.error('this is error')
  1. 保存log为文件
  • 只需要设置一次,后续的log将会被存储
showlog.save_info('[your file name].log')
showlog.save_warning('[your file name].log')
showlog.save_error('[your file name].log')

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

showlog-0.0.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

showlog-0.0.3-py3-none-any.whl (4.8 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