<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>boonv4m312s</author_name>
  <author_url>https://blog.hatena.ne.jp/boonv4m312s/</author_url>
  <blog_title>社内SEの話</blog_title>
  <blog_url>https://boonx4m312s.hatenablog.com/</blog_url>
  <categories>
    <anon>Powershell</anon>
  </categories>
  <description>こんにちは、はじめまして。めじろです。 PowerShellでバッチ処理などのスクリプト処理をさせていると度々実行結果をログ出力したくなります。 テキストに書き出してもいいのですがイベントビューアーから見た方がちゃんとしたシステムっぽい動きになります。 テキスト出力のほうが絶対に簡単です・・・ ではなぜイベントログに書き込むかというとプログラム外のメンテナンスが不要になります。 ログを出力すると日付ごとファイルを分けたり、レベルに応じたファイルにしたりと管理する内容が多くなり複雑化しやすくなります。 その点イベントログに書き込むだけで済むのでログローテーションを想定する必要がなくなります。 ロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboonx4m312s.hatenablog.com%2Fentry%2F2022%2F07%2F22%2F210000&quot; title=&quot;Powershell イベントログ書き込み - 社内SEの話&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/b/boonv4m312s/20220722/20220722153408.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-22 21:00:00</published>
  <title>Powershell イベントログ書き込み</title>
  <type>rich</type>
  <url>https://boonx4m312s.hatenablog.com/entry/2022/07/22/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
