<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>keichanzahorumon0405</author_name>
  <author_url>https://blog.hatena.ne.jp/keichanzahorumon0405/</author_url>
  <blog_title>技術開発日記</blog_title>
  <blog_url>https://kechanzahorumon.hatenadiary.com/</blog_url>
  <categories>
    <anon>Log4j</anon>
  </categories>
  <description>文字列の生成に処理コストが掛かってしまうため、Log4jを使ってデバッグログを出力する場合は以下のように書くことが多い。 if(log.isDebugEnabled()){ log.debug(&quot;User Name:&quot; + user.getName()); } しかし、正直僕はこの書き方にはとても賛成できない。 実装でデバッグ処理を書く度にこのif文も一緒に書かないといけない上に、ソースの可読性もすごく落ちる。そこでなんとかこのif文を書かなくてもいい方法を探していたら、 どうやらCommons Loggingに相当するSLF4Jというのがあって、これがどうやら解決してくれるみたいだ。以下は上…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkechanzahorumon.hatenadiary.com%2Fentry%2F2012%2F10%2F03%2F165824&quot; title=&quot;Log4jとLogBack - 技術開発日記&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>2012-10-03 16:58:24</published>
  <title>Log4jとLogBack</title>
  <type>rich</type>
  <url>https://kechanzahorumon.hatenadiary.com/entry/2012/10/03/165824</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
