<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Structured Log on PlumePHP</title><link>https://plumephp.com/tags/structured-log/</link><description>Recent content in Structured Log on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 28 Jul 2025 08:54:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/structured-log/index.xml" rel="self" type="application/rss+xml"/><item><title>Go 入门：用 slog 写可检索的结构化日志</title><link>https://plumephp.com/go-slog-structured-logging-2025/</link><pubDate>Mon, 28 Jul 2025 08:54:00 +0800</pubDate><guid>https://plumephp.com/go-slog-structured-logging-2025/</guid><description>&lt;p&gt;日志不是程序最后随手加的一行 &lt;code&gt;fmt.Println&lt;/code&gt;。线上排查问题时，日志经常是第一证据：哪个用户触发了请求、参数是什么、调用下游花了多久、错误发生在哪一层。纯文本日志能看，但不方便检索。结构化日志把关键信息放到字段里，日志平台可以按字段过滤、聚合和统计。&lt;/p&gt;</description></item></channel></rss>