Skip to main content

No project description provided

Project description

=============
Minori Logger
=============
a personal logger package.

Home-page: https://github.com/issiki/python-logger
Author: Futaba Isshiki
Author-email: futaba_isshiki@outlook.com
License: MIT
Description:
# python-logger
用Python的logging模块写的logger

## USAGE
通过`pip`安装:
```bash
pip install minori-logger
```

通过`pip`更新到最新版
```bash
pip install minori-logger --upgrade
```

在代码中使用:
```python
from minori_logger import MinoriLogger
# ...
logger = MinoriLogger.get_logger("logger_name_and_filename")
# ...
logger.debug("平常的输出。代替print()")
logger.info("为了诊断问题而详细记录")
logger.warning("程序无法处理这种情形,但是应当记录此事件")
logger.exception("报告未抛出异常而抑制了此错误。程序抛出了异常。")
logger.error("报告未抛出异常而抑制了此错误。严重的错误。")
logger.critical("报告未抛出异常而抑制了此错误。非常严重的错误。")
```

## HOW TO PACKAGE THIS PROJECT
**仅用于作者发布此包时**
```bash
python3 setup.py sdist bdist_wheel
python3 setup.py upload
```

## CHANGELOG
_只保留最新的5条左右,其余的将移入CHANGELOG.md_

### [UNRELEASED]

### [0.4.2] - 2019-04-11
- CHANGE
```
*变更日志消息的格式:{datetime} {level} {message} {pathname}({line-number})
```

### [0.4.0] - 2019-04-11
- CHANGE
```
-默认logger名:minori
+默认logger名:log
-日志文件名:{log}.log
+日志文件名:{log}-{today}.log
```

### [0.3.0] - 2019-03-28
- FIX
- 修正判断文件的创建日期之前未判断文件是否存在的BUG

### [0.2.0] - 2019-03-28
- CHANGE
- 变更了处理旧日志的方式。现在,非当日创建的日志文件的内容将会被复制到含有日志文件创建日期的新文件中。过去,非当日创建的日志文件会被尝试重命名。

### [0.1.0] - 2019-03-27
- ADD
- 通过指定不同的`logger_name`来使用不同的logger

## LICENSE
MIT © [Futaba "一色双葉" Isshiki](https://futaba.love/about)

_END OF README.md_
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7.0
Description-Content-Type: text/markdown

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
minori_logger-0.4.2-py2.py3-none-any.whl (5.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
minori-logger-0.4.2.tar.gz (5.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page