title: Binary logging framework in C++
body: <p>There are a lot of logging frameworks for many languages out there. But I did not find any framework suitable for certain embedded applications. I want to log data in an embedded device and neither have a lot of bandwith or a lot of memory available. </p>
  
  <p>The logging framwork I want should be usable like usual logging frameworks with descriptive strings etc. directly inside the source code. I would like to extract the descriptive strings from the source code to a seperate file (e.g. xml) and replace them in the binary output with ids. In an analysis tool, i would then take these IDs and display the text again. For PC debugging I could directly use the string. </p>
  
  <p>I want to know about feasible methods to provide message id's, formatting instructions and accompanied parameter values, but put to the communication port in kind of a compact binary format. </p>
  
  <p>Also I'd like to avoid seeing the footprint blowup with c++, introduced by </p>
  
  <pre><code>#include &lt;iostream&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  </code></pre>
  
  <p>et. al like with the standard c libraries type formatting libraries.</p>