semvec/pypi-packages huggingface dataset:
pyloggerhelper 0.0.4
json logger helper
License: MIT License
Keywords: logger,proxy

# pyloggerhelper

json格式log的帮助程序

## 使用

```python
from pyloggerhelper import log


def testrun():
    log.info("test")


if __name__ == "__main__":
    log.initialize_for_app("testapp",log_level="INFO",binds={"IP":"0.0.0.0"})
    testrun()
```

# 0.0.4

## 新特性

+ 增加参数`json_render_kws`用于设置json的输出格式

# 0.0.3

## 优化

+ 去掉了`logger`这个意义不明的字段,改为使用`app_name`
+ `timestamp`改为`time`避免歧义

# 0.0.2

## 新特性

+ 怎加了初始化参数`binds:Dict[str,Any]`用于绑定固定字段

# 0.0.1

项目创建
MIT License

Copyright (c) 2021 Python-Tools

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.