title: how to see the log of the DEBUGMSGTL in net-snmp
body: <p>I am trying to write a snmp subagent that using agentX, which is supported by net-snmp.
  At first, I used the example codes from net-snmp FAQ:</p>
  
  <p><a href="http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent" rel="nofollow">http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent</a></p>
  
  <p>And from the example codes
  (<strong>example-demon.c,nstAgentSubagentObject.c,nstAgentSubagentObject.h</strong>), I build a subagent which can use agentX to perform snmpget and snmpset.</p>
  
  <p>My question is:
  From the code in <strong>nstAgentSubagentObject.c</strong>, there are many trace codes such as follows:</p>
  
  <pre><code>DEBUGMSGTL(("nstAgentSubagentObject",
                  "Initializing the nstAgentSubagentObject module\n"));
  </code></pre>
  
  <p>But I can't see the log anywhere.</p>
  
  <p>I tried to start snmpd (demon of snmp) by 
  <code>snmpd -f -DnstAgentSubagentObject -Lf /tmp/snmp.log</code>.</p>
  
  <p>But I still can't see the log. Could anyone tell me how to see the log of DEBUGMSGTL?</p>