# CSJ2K.j2k.util.StreamMsgLogger.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_util_StreamMsgLogger__ctor_" data-uid="CSJ2K.j2k.util.StreamMsgLogger.#ctor*">StreamMsgLogger Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_util_StreamMsgLogger__ctor_" data-uid="CSJ2K.j2k.util.StreamMsgLogger.#ctor*"></a>
<h4 id="CSJ2K_j2k_util_StreamMsgLogger__ctor_System_IO_Stream_System_IO_Stream_System_Int32_" data-uid="CSJ2K.j2k.util.StreamMsgLogger.#ctor(System.IO.Stream,System.IO.Stream,System.Int32)">StreamMsgLogger(Stream, Stream, int)</h4>
<div class="markdown level1 summary"><p>Constructs a StreamMsgLogger that uses 'outstr' as the 'out' stream,
and 'errstr' as the 'err' stream. Note that 'outstr' and 'errstr' can
be System.out and System.err.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StreamMsgLogger(Stream outstr, Stream errstr, int lw)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(outstr As Stream, errstr As Stream, lw As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">outstr</span></td>
      <td><p>Where to print simple strings and LOG and INFO messages.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">errstr</span></td>
      <td><p>Where to print WARNING and ERROR messages</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lw</span></td>
      <td><p>The line width to use in formatting</p>
</td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_j2k_util_StreamMsgLogger__ctor_" data-uid="CSJ2K.j2k.util.StreamMsgLogger.#ctor*"></a>
<h4 id="CSJ2K_j2k_util_StreamMsgLogger__ctor_System_IO_StreamWriter_System_IO_StreamWriter_System_Int32_" data-uid="CSJ2K.j2k.util.StreamMsgLogger.#ctor(System.IO.StreamWriter,System.IO.StreamWriter,System.Int32)">StreamMsgLogger(StreamWriter, StreamWriter, int)</h4>
<div class="markdown level1 summary"><p>Constructs a StreamMsgLogger that uses 'outstr' as the 'out' stream,
and 'errstr' as the 'err' stream. Note that 'outstr' and 'errstr' can
be System.out and System.err.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StreamMsgLogger(StreamWriter outstr, StreamWriter errstr, int lw)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(outstr As StreamWriter, errstr As StreamWriter, lw As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.streamwriter">StreamWriter</a></td>
      <td><span class="parametername">outstr</span></td>
      <td><p>Where to print simple strings and LOG and INFO messages.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.streamwriter">StreamWriter</a></td>
      <td><span class="parametername">errstr</span></td>
      <td><p>Where to print WARNING and ERROR messages</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lw</span></td>
      <td><p>The line width to use in formatting</p>
</td>
    </tr>
  </tbody>
</table>
</div>
