title: How to change the level of AX info messages
body: <p>In Dynamics AX 2009 I am trying to determine the level of indentation of an info message.  What I want is something similar to this:</p>
  
  <pre><code>Prefix
      Info1
      Info2
  Prefix2
      Info3
  </code></pre>
  
  <p>I found this:</p>
  
  <p><a href="http://www.doens.be/2010/05/the-ax-infolog/" rel="noreferrer">http://www.doens.be/2010/05/the-ax-infolog/</a></p>
  
  <p>But don't want to use a loop, so I thought something like this might work:</p>
  
  <pre><code>setprefix("Prefix");    
  
  {
      info("Info1");
      info("Info2");
  }
  
  setprefix("Prefix2");
  
  {
      info("Info3");
  }
  </code></pre>
  
  <p>But it doesn't.  Is there a way to do this in x++, and what are the rules as to what indent level is currently active?</p>