<?xml version="1.0" encoding="utf-8"?><rss version="2.0" 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/tag/pipe-logger-lib/feed</link><description>多元化原創文章，內容包羅萬象，有程式語言、網站應用、軟體介紹、硬體介紹、作業系統、旅行遊記、專題採訪、益智問題、文學創作，以及作者們的知識分享和作品分享。</description><language>zh-TW</language><lastBuildDate>Thu, 16 Apr 2026 23:51:36 +0000</lastBuildDate><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/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/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/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/pipe-logger</guid><pubDate>Thu, 13 Dec 2018 20:00:59 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>