KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
jsonlog
★ 15
Open GitHub ↗
Structured logging tools
Download README (.md)
Explore Similar Repositories
FoxConquer5517
:
Conquer Online Server Emulator Version 5517. Based in WorldConquerV2
sa-doc
:
一个基于markdown的接口文档编写工具
cnn-proxy
:
Subdomain method that proxies websockets, XMLHttpRequests, and more.
-AI-baseAttendance-management-system-GUI-
:
A complete GUI based attendance system project for real time face recognition attendance using existing CCTV cameras in
angular-admin-web
:
angular12和antd搭建的后台管理系统基础模板,包括登录、左侧导航、拦截器、ngrx状态管理等
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
jsonlog
?
Download (.md)
jsonlog ======= A set of Python modules for working with structured JSON logs. * [jsonlog](./jsonlog/README.md) provides a JSON formatter for Python's `logging` module. * [jsonlog-cli](./jsonlog-cli/README.md) provides a command line tool for converting JSON logs into human readable output. The `jsonlog` module -------------------- You can use `jsonlog` as a drop-in replacement for `logging`: ```python import jsonlog jsonlog.warning("Hello world.") ``` ```json {"timestamp": "2019-06-21T19:06:25.285730", "level": "WARNING", "name": "root", "message": "Hello world."} ``` See the [jsonlog] README for documentation and examples. The `jsonlog` cli ----------------- Pipe line-delimited JSON into the `jsonlog` CLI: ```bash python jsonlog-cli/docs/example.py | jsonlog ``` ```text timestamp='2020-06-15T13:27:41.909782' name='example' message='debug level log message' timestamp='2020-06-15T13:27:41.909882' name='example' message='info level log message' timestamp='2020-06-15T13:27:41.909940' name='example' message='warning level log message' timestamp='2020-06-15T13:27:41.909990' name='example' message='error level log message' timestamp='2020-06-15T13:27:41.910040' name='example' message='error level log message with traceback' Traceback (most recent call last): File "jsonlog-cli/docs/example.py", line 15, in <module> 1 / 0 ZeroDivisionError: division by zero timestamp='2020-06-15T13:27:41.910239' name='example' message='critical level log message' ``` See the [jsonlog-cli] README for documentation and examples. Authors ------- * [Sam Clements] [jsonlog-cli]: ./jsonlog-cli/README.md [jsonlog]: ./jsonlog/README.md [Sam Clements]: https://gitlab.com/borntyping