我自己做的小型日志库。

kyra的Python项目详细描述


kyra是一个用python编写的小型日志库,是我自己制作的 使用这个库已经用Python2.7.x和Python3.6.x进行了测试。

安装:

源代码使用

$ python setup.py install

或者从PyPi安装

$ pip install kyra

用法:

#!/usr/bin/env python# -*- coding: utf-8 -*-fromkyraimportLoggerlog=Logger()# An absolute path can be passed to Logger() to log to a file.@log.decoratordefsum(a,b):returna+bsum(2,4)log.error('This tests the ERROR logging call.')

许可证:

Copyright 2014-2017 Martin Simon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

给我买杯咖啡?

如果你想给我买杯咖啡(或啤酒?),欢迎捐款:

WDC : WbcWJzVD8yXt3yLnnkCZtwQo4YgSUdELkj
HBN : F2Zs4igv8r4oJJzh4sh4bGmeqoUxLQHPki
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在Hibernate中从两个具有不同功能的表(postgreSQL)映射一个实体   java jfreechart需要自定义Y轴,以便打印   Java:从外部获取类。罐子   java如何获取Appium服务器日志   具有完全相同内容的java重写函数会导致错误   java消息的类路径是什么。属性(如果在依赖项jar中)   循环/相等的java问题==   java如何使用ionic cordova angularjs将所选图像发送到spring controller以保存到服务器?   库中的java语言环境数据   java从JSON webservice检索安卓中的字节[]   调试如何从Java中的类调试方法?   java将日期字符串切割成变量   无法使用java附加到文件?