[![PyPI Version](https://shields.mitmproxy.org/pypi/v/logni.svg)](https://pypi.org/project/logni/)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/441b9bb67c0f4956b5d4bcfbe76e00c6)](https://www.codacy.com/manual/erikni/logni.py?utm_source=github.com&utm_medium=referral&utm_content=erikni/logni.py&utm_campaign=Badge_Grade)
[![Github Releases](https://img.shields.io/github/downloads/atom/atom/latest/total.svg)](https://github.com/erikni/logni.py/releases)
[![Build Status](https://api.travis-ci.org/erikni/logni.py.svg?branch=develop)](http://travis-ci.org/erikni/logni.py)
[![Maintainability](https://api.codeclimate.com/v1/badges/27cb403386b704028bb5/maintainability)](https://codeclimate.com/github/erikni/logni.py/maintainability)
[![Known Vulnerabilities](https://snyk.io//test/github/erikni/logni.py/badge.svg?targetFile=requirements.txt)](https://snyk.io//test/github/erikni/logni.py?targetFile=requirements.txt)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENCE)
# logni.py
logni is a python library for event logging and application states
## How to install?
- git (github) #1
- wget (github) #2
- pip (python packages) #3
Install from Github #1
```
$ git clone https://github.com/erikni/logni.py.git
$ cd logni.py
$ sudo pip3 install -r requirements.txt
$ python3 test/example/basic_example.py
```
Install from Github #2
```
$ sudo wget -O - https://raw.githubusercontent.com/erikni/logni.py/master/setup.sh | bash
```
Install with PIP (Python Package Installer) #3
```
$ pip3 install logni
$ python3 /usr/local/lib/python3/dist-packages/logni/logni.py
```
## Example
```
$ python3
>>> from logni import log
>>> log.mask('ALL')
>>> log.console(1)
>>> 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(), priority=4)
2016/04/01 22:08:18 [15489] E4: error message #1459541298.29 [58138001] {logni.py:error():164}
>>> log.warn('warning message #%s', time.time(), priority=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(), priority=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(), priority=1)
2016/04/01 22:08:18 [15489] D1: debug message #1459541298.29 [37e911b8] {logni.py:debug():173}
```
## Support
Logni support python >= 3.6
## Roadmap
Current roadmap:
* new integration (rollbar, logentries, sentry, ... )
* performance improvement.
## Test
[test/unit](https://github.com/erikni/logni.py/tree/develop/test/unit)
## Contribution
[Pull Requests](https://github.com/erikni/logni.py/pulls) are very welcome.
# Licence
[GNU General Public License v3.0](LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/erikni/logni.py",
"name": "logni",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "logging, logging-library, logger",
"author": "Erik Brozek",
"author_email": "erik@brozek.name",
"download_url": "https://files.pythonhosted.org/packages/e7/51/17fe88b16ca7793daa7f93be886b277be81656e14c10473a47d05732350a/logni-0.2.3.tar.gz",
"platform": null,
"description": "[![PyPI Version](https://shields.mitmproxy.org/pypi/v/logni.svg)](https://pypi.org/project/logni/)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/441b9bb67c0f4956b5d4bcfbe76e00c6)](https://www.codacy.com/manual/erikni/logni.py?utm_source=github.com&utm_medium=referral&utm_content=erikni/logni.py&utm_campaign=Badge_Grade)\n[![Github Releases](https://img.shields.io/github/downloads/atom/atom/latest/total.svg)](https://github.com/erikni/logni.py/releases)\n[![Build Status](https://api.travis-ci.org/erikni/logni.py.svg?branch=develop)](http://travis-ci.org/erikni/logni.py)\n[![Maintainability](https://api.codeclimate.com/v1/badges/27cb403386b704028bb5/maintainability)](https://codeclimate.com/github/erikni/logni.py/maintainability)\n[![Known Vulnerabilities](https://snyk.io//test/github/erikni/logni.py/badge.svg?targetFile=requirements.txt)](https://snyk.io//test/github/erikni/logni.py?targetFile=requirements.txt)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENCE)\n\n# logni.py\nlogni is a python library for event logging and application states\n\n## How to install?\n- git (github) #1\n- wget (github) #2\n- pip (python packages) #3\n\n\nInstall from Github #1\n```\n$ git clone https://github.com/erikni/logni.py.git\n$ cd logni.py\n$ sudo pip3 install -r requirements.txt\n$ python3 test/example/basic_example.py\n```\n\nInstall from Github #2\n```\n$ sudo wget -O - https://raw.githubusercontent.com/erikni/logni.py/master/setup.sh | bash\n```\n\nInstall with PIP (Python Package Installer) #3\n```\n$ pip3 install logni\n$ python3 /usr/local/lib/python3/dist-packages/logni/logni.py\n```\n\n## Example\n\n```\n$ python3\n\n>>> from logni import log\n\n>>> log.mask('ALL')\n>>> log.console(1)\n\n>>> log.critical('critical message')\n2016/04/01 22:08:18 [15489] F4: critical message [7e995d1a] {logni.py:fatal():161}\n\n>>> log.error('error message #%s', time.time(), priority=4)\n2016/04/01 22:08:18 [15489] E4: error message #1459541298.29 [58138001] {logni.py:error():164}\n\n>>> log.warn('warning message #%s', time.time(), priority=3)\n2016/04/01 22:08:18 [15489] W3: warning message #1459541298.29 [91b483ab] {logni.py:warn():167}\n\n>>> log.info('info message #%s', time.time(), priority=2)\n2016/04/01 22:08:18 [15489] I2: info message #1459541298.29 [eaf58c15] {logni.py:info():170}\n\n>>> log.debug('debug message #%s', time.time(), priority=1)\n2016/04/01 22:08:18 [15489] D1: debug message #1459541298.29 [37e911b8] {logni.py:debug():173}\n```\n\n## Support\n\nLogni support python >= 3.6\n\n## Roadmap\n\nCurrent roadmap:\n\n* new integration (rollbar, logentries, sentry, ... )\n* performance improvement.\n\n## Test\n\n[test/unit](https://github.com/erikni/logni.py/tree/develop/test/unit)\n\n## Contribution\n\n[Pull Requests](https://github.com/erikni/logni.py/pulls) are very welcome.\n\n# Licence\n\n[GNU General Public License v3.0](LICENSE)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "python library for event logging and application states",
"version": "0.2.3",
"project_urls": {
"Download": "https://github.com/erik/logni.py/archive/master.zip",
"Homepage": "https://github.com/erikni/logni.py"
},
"split_keywords": [
"logging",
" logging-library",
" logger"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e75117fe88b16ca7793daa7f93be886b277be81656e14c10473a47d05732350a",
"md5": "b815ef830667a3ff4b25a699806fb2ed",
"sha256": "d7337e73a501e4ee6be224d1724b826710743251429fc74a6e19cb989dbf64f1"
},
"downloads": -1,
"filename": "logni-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "b815ef830667a3ff4b25a699806fb2ed",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 20927,
"upload_time": "2024-07-26T13:53:31",
"upload_time_iso_8601": "2024-07-26T13:53:31.824856Z",
"url": "https://files.pythonhosted.org/packages/e7/51/17fe88b16ca7793daa7f93be886b277be81656e14c10473a47d05732350a/logni-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-26 13:53:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "erikni",
"github_project": "logni.py",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "logni"
}