logni.py
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Full-stack error tracking for all apps in python
[![Build Status](https://travis-ci.org/Logni/logni.py.svg?branch=master)](https://travis-ci.org/Logni/logni.py)
 [ ![Download](https://api.bintray.com/packages/logni/deb/python-logni/images/download.svg) ](https://bintray.com/logni/deb/python-logni/_latestVersion)

# logni
Logging facility for Python

---

Example:

`# python`

`>>> from logni import log`

`>>> log.mask('ALL')` 

`>>> log.stderr(1)`

`# log.ni( 'tests %s %s', (11, 22), INFO=3 )`

2016/04/01 22:08:18 [15489] I3: tests 11 22 [17ed5aec] {logni.py:():196}

`# log.critical( 'critical message' )`

2016/04/01 22:08:18 [15489] F4: critical message [7e995d1a] {logni.py:fatal():161}

`# log.error( 'error message   #%s', time.time(), level=4 )`

2016/04/01 22:08:18 [15489] E4: error message   #1459541298.29 [58138001] {logni.py:error():164}

`# log.warning( 'warning message #%s', time.time(), level=3 )`

2016/04/01 22:08:18 [15489] W3: warning message #1459541298.29 [91b483ab] {logni.py:warn():167}

`# log.info( 'info message    #%s', time.time(), level=2 )`

2016/04/01 22:08:18 [15489] I2: info message    #1459541298.29 [eaf58c15] {logni.py:info():170}

`# log.debug( 'debug message   #%s', time.time(), level=1 )`

2016/04/01 22:08:18 [15489] D1: debug message   #1459541298.29 [37e911b8] {logni.py:debug():173}

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。