<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/pipe-logger/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 18:50:58 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/pipe-logger/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>如何将 Rust 程序的 Log 消息输出成 Log 档？</title><link>https://magiclen.org/cn/pipe-logger-lib/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
在开发程序的时候，经常会需要使用「Log」或是「Console」等类别输出某些文字消息来告诉系统管理员程序运行的状况。当程序作为背景服务来运行的时候，通常会将这些 Log 消息写进文件系统内，方便日后查阅。然而，保存在文件系统中的每则文字消息虽然可能只是短短的几行字，但累积久了也是会占用不少硬盘空间，如果没有定期整理的话，可能哪天系统的可用空间就被历史纪录塞满，而导致当机。为了避免程序输出的消息塞...]]></description><category>Rust</category><category>Rust</category><category>Pipe Logger</category><category>pipe-logger-lib</category><guid>https://magiclen.org/cn/pipe-logger-lib</guid><pubDate>Thu, 7 Feb 2019 20:00:27 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>使用 Pipe Logger 来导出 Log 档，不怕占用太多硬盘空间</title><link>https://magiclen.org/cn/pipe-logger/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/11/iconfinder_gas_pipe-oil_industry-power-factory-illustration-energy-gas-refinery-fuel-symbol-industrial_3652545-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/11/iconfinder_gas_pipe-oil_industry-power-factory-illustration-energy-gas-refinery-fuel-symbol-industrial_3652545-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/11/iconfinder_gas_pipe-oil_industry-power-factory-illustration-energy-gas-refinery-fuel-symbol-industrial_3652545-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/11/iconfinder_gas_pipe-oil_industry-power-factory-illustration-energy-gas-refinery-fuel-symbol-industrial_3652545-660x486.png 3x" alt>
在程序运行的时候，经常会需要输出某些文字消息来告诉系统管理员程序运行的状况。这些消息可能会直接输出到屏幕上，或是写进文件中方便日后查阅或是处理。然而，保存在文件系统中的每则文字消息虽然可能只是短短的几行字，但累积久了也是会占用不少硬盘空间，如果没有定期整理的话，可能哪天系统的可用空间就被历史纪录塞满，而导致当机。为了避免程序输出的消息塞满硬盘空间，可以使用 Pipe Logger 来限制消息被保存...]]></description><category>作品分享</category><category>软件介绍</category><category>Linux</category><category>Windows</category><category>Rust</category><category>Pipe Logger</category><category>pipe-logger-lib</category><category>macOS</category><guid>https://magiclen.org/cn/pipe-logger</guid><pubDate>Thu, 13 Dec 2018 20:00:59 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>