<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kan_kikuchi</author_name>
  <author_url>https://blog.hatena.ne.jp/kan_kikuchi/</author_url>
  <blog_title>(:3[kanのメモ帳]</blog_title>
  <blog_url>https://kan-kikuchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>この記事でのバージョン Unity 2022.3.32f1 はじめに ゲーム開発(というかプログラミング？)に欠かせないログの表示ですが、処理負荷の軽減や情報漏洩防止のためにリリース時には表示しないようにする事がほとんどです。 ただ、シンプルにログ表示メソッドだけを無効化すると以下のような処理結果に応じて長めのログを作る時は無駄な文字列を生成してしまいます。 var log = &quot;テストでログ追加&quot;; /*なんか色々処理*/ log += &quot;\n処理をもとに追加&quot;; /*さらに色々処理*/ log += &quot; + さらにログ追加&quot;; //ログ表示 Debug.Log(log);//ここを無効化し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FEditorLogger&quot; title=&quot;無効化した時に無駄な文字列を生成しないログクラス【Unity】 - (:3[kanのメモ帳]&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/k/kan_kikuchi/20241104/20241104211221.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-07 07:50:01</published>
  <title>無効化した時に無駄な文字列を生成しないログクラス【Unity】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/EditorLogger</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
