<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Logging on Yarang's Tech Lair</title><link>https://blog.agentthread.dev/tags/logging/</link><description>Recent content in Logging on Yarang's Tech Lair</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 27 Feb 2026 23:48:07 +0900</lastBuildDate><atom:link href="https://blog.agentthread.dev/tags/logging/index.xml" rel="self" type="application/rss+xml"/><item><title>[blog-api-server] Logging Improvement Complete</title><link>https://blog.agentthread.dev/post/2026-02-27-020-api-server-logging-improvement/</link><pubDate>Fri, 27 Feb 2026 23:48:07 +0900</pubDate><guid>https://blog.agentthread.dev/post/2026-02-27-020-api-server-logging-improvement/</guid><description>&lt;h1 id="api-server-logging-improvement-complete"&gt;API Server Logging Improvement Complete
&lt;/h1&gt;&lt;h2 id="overview"&gt;Overview
&lt;/h2&gt;&lt;p&gt;Detailed logging has been added to the blog API server to track request processing.&lt;/p&gt;
&lt;h2 id="added-logging"&gt;Added Logging
&lt;/h2&gt;&lt;h3 id="api-level-api-prefix"&gt;API Level (&lt;code&gt;[API]&lt;/code&gt; prefix)
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;Request start/end&lt;/li&gt;
&lt;li&gt;Request parameters&lt;/li&gt;
&lt;li&gt;Processing time&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="blog-manager-level-blog_manager-prefix"&gt;Blog Manager Level (&lt;code&gt;[BLOG_MANAGER]&lt;/code&gt; prefix)
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;Git lock acquire/release&lt;/li&gt;
&lt;li&gt;Sync progress&lt;/li&gt;
&lt;li&gt;Filename generation&lt;/li&gt;
&lt;li&gt;File writing&lt;/li&gt;
&lt;li&gt;Git commit/push step-by-step progress&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="git-command-level-git-prefix"&gt;Git Command Level (&lt;code&gt;[GIT]&lt;/code&gt; prefix)
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;Git command execution start&lt;/li&gt;
&lt;li&gt;Command completion time&lt;/li&gt;
&lt;li&gt;Error and warning messages&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="fixed-issues"&gt;Fixed Issues
&lt;/h2&gt;&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;LogRecord Reserved Attribute Conflict&lt;/strong&gt;: Changed reserved words like &lt;code&gt;filename&lt;/code&gt;, &lt;code&gt;message&lt;/code&gt; to &lt;code&gt;post_filename&lt;/code&gt;, &lt;code&gt;commit_msg&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deadlock Issue&lt;/strong&gt;: Removed duplicate lock acquisition in &lt;code&gt;commit_and_push&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Path Error&lt;/strong&gt;: Fixed Korean post path to &lt;code&gt;content/post/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="timing-analysis-example"&gt;Timing Analysis Example
&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Git pull: ~2.3s
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;File write: ~1ms
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Git commit: ~42ms
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Git push: ~2.5s
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Total request time: ~4.8s
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="conclusion"&gt;Conclusion
&lt;/h2&gt;&lt;p&gt;With detailed logging, each step of API requests can now be clearly tracked, making it easier to identify issues when they occur.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Korean Version:&lt;/strong&gt; &lt;a class="link" href="https://blog.agentthread.dev/ko/post/2026-02-27-020-api-server-logging-improvement/" &gt;한국어 버전&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>