<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hide734</author_name>
  <author_url>https://blog.hatena.ne.jp/hide734/</author_url>
  <blog_title>Hide Lab@はてなブログ</blog_title>
  <blog_url>https://hidelab.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>はじめに ロギングを行うライブラリは沢山ありますが、比較的導入が簡単な NLog を DI を利用してログ出力する方法を紹介します。 開発環境 Visual Studio 2022 ASP.NET Core 6 準備 以下のパッケージを手動または nuget を使用して追加してください。 NLog.Web.AspNetCore v5+ NLog v5+ nlog.config ファイルの作成 プロジェクトのルートに nlog.config (すべて小文字) ファイルを作成します。 以下サンプルです。 &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt; &lt;nlog x…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhidelab.hateblo.jp%2Fentry%2F2022%2F11%2F02%2F173731&quot; title=&quot;ASP.NET Core 6 で NLog を使用してログ出力 - Hide Lab@はてなブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-02 17:37:31</published>
  <title>ASP.NET Core 6 で NLog を使用してログ出力</title>
  <type>rich</type>
  <url>https://hidelab.hateblo.jp/entry/2022/11/02/173731</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
