Metadata-Version: 2.1
Name: jjlog
Version: 0.1
Summary: logger with standard/common format
Home-page: https://gitlab.com/mhliu8/jjlog
Author: John Jang
Author-email: mhliu8@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

## <b>📚  About</b>
Centralize log for Python with:
- UTC time with ISO8601 format.
- Accency to milliseconds.
- Json format.
- Log write to console
- Log write to specific file location and rotate (optional) 

## <b>📝  Usage</b>

```python

from jjlog import jjlogger

log = jjlogger("jjapp Log", "./log/jjapp.log")
# log = jjlogger("jjapp Log")   ## Or just output to console
logger = log.getLogger()

logger.info("jj test001")
```
Output: `{ 'time':'2022-03-27T14:07:17.456Z','name':'jjapp Log','level':'INFO','message':'log start' }`


## <b>🔧 Examples:</b>
[example code](https://gitlab.com/mhliu8/jjlog/-/tree/main/tests)

