<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hotch-potch</author_name>
  <author_url>https://blog.hatena.ne.jp/hotch-potch/</author_url>
  <blog_title>hotch-potch, Note to self</blog_title>
  <blog_url>https://hotch-potch.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Ubuntu</anon>
    <anon>雑記</anon>
  </categories>
  <description>１．はじめに Windows向けに作成したコンソールアプリで、動作状況を標準出力に常に出力する仕様のものがあるとします。 標準出力の内容をログファイルに書き出すのは、リダイレクトするだけでよいのですが、次々に内容が追記されて容量が無限に増える恐れがあります。 ここでは、リダイレクトだけでは管理しきれない制御を、rotatelogs.exeコマンドを使って、世代管理やローテーションする手順を解説します。 １．はじめに ２．rotatelogs.exe コマンドの入手 ３．実験 実験 実際の運用での考え方 引数の与え方 参考資料</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhotch-potch.hatenadiary.jp%2Fentry%2F2023%2F08%2F21%2F220000&quot; title=&quot;標準出力を世代管理されたログに出力(rotatelogs.exe活用) - hotch-potch, Note to self&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hotch-potch/20230821/20230821112347.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-08-21 22:00:00</published>
  <title>標準出力を世代管理されたログに出力(rotatelogs.exe活用)</title>
  <type>rich</type>
  <url>https://hotch-potch.hatenadiary.jp/entry/2023/08/21/220000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
