JSON 格式化工具 logstash_formatter

码农软件 · 软件分类 · 日志工具(Logging) · 2019-09-20 14:44:27

软件介绍

logstash_formatter 是将 Python 日志格式化为 JSON 格式数据,并可输出到 logstash 上。

示例代码:

import logging
from logstash_formatter import LogstashFormatter

logger = logging.getLogger()
handler = logging.StreamHandler()
formatter = LogstashFormatter()

handler.setFormatter(formatter)
logger.addHandler(handler)

本文地址:https://codercto.com/soft/d/15015.html

Introduction to Computer Science Using Python

Introduction to Computer Science Using Python

Dierbach, Charles / 2012-12 / $ 133.62

Introduction to Computer Science Using Python: A Computational Problem-Solving Focus introduces students to programming and computational problem-solving via a back-to-basics, step-by-step, objects-la......一起来看看 《Introduction to Computer Science Using Python》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具