<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ninecube</author_name>
  <author_url>https://blog.hatena.ne.jp/ninecube/</author_url>
  <blog_title>烏の俯瞰</blog_title>
  <blog_url>https://ninecube.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラム</anon>
  </categories>
  <description>C言語でprintfを使用せずにsyslogでログを出力する方法。 #include &lt;syslog.h&gt; : : syslog(LOG_INFO, &quot;%s\t%s:%d&quot;, msg, __FILE__, __LINE__); : /* SQLの結果を出力する場合はこんな感じ */ syslog(LOG_INFO, &quot;%d: %s \t%s:%d&quot;, sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc, __FILE__, __LINE__); これでsyslog(/var/log/messages or /var/adm/messages)に任意のログを出力可能になり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fninecube.hatenadiary.org%2Fentry%2F20091009%2F1255073816&quot; title=&quot;簡易デバッグログ出力方法 - 烏の俯瞰&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>2009-10-09 16:36:56</published>
  <title>簡易デバッグログ出力方法</title>
  <type>rich</type>
  <url>https://ninecube.hatenadiary.org/entry/20091009/1255073816</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
