我自己做的小型日志库。
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