# CSJ2K.j2k.util.StreamMsgLogger

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_util_StreamMsgLogger" data-uid="CSJ2K.j2k.util.StreamMsgLogger" class="text-break">StreamMsgLogger Class
</h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">StreamMsgLogger</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.util.MsgLogger.html">MsgLogger</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.util.html">CSJ2K.j2k.util</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_util_StreamMsgLogger_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class StreamMsgLogger : MsgLogger</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class StreamMsgLogger
    Implements MsgLogger</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td 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)">
          <a class="xref" href="CSJ2K.j2k.util.StreamMsgLogger.-ctor.html#CSJ2K_j2k_util_StreamMsgLogger__ctor_System_IO_Stream_System_IO_Stream_System_Int32_">StreamMsgLogger(Stream, Stream, int)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="CSJ2K.j2k.util.StreamMsgLogger.-ctor.html#CSJ2K_j2k_util_StreamMsgLogger__ctor_System_IO_StreamWriter_System_IO_StreamWriter_System_Int32_">StreamMsgLogger(StreamWriter, StreamWriter, int)</a>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_StreamMsgLogger_flush" data-uid="CSJ2K.j2k.util.StreamMsgLogger.flush">
          <a class="xref" href="CSJ2K.j2k.util.StreamMsgLogger.flush.html#CSJ2K_j2k_util_StreamMsgLogger_flush">flush()</a>
        </td>
        <td class="markdown level1 summary"><p>Writes any buffered data from the print() and println() methods to the
device.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_StreamMsgLogger_println_System_String_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.util.StreamMsgLogger.println(System.String,System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.util.StreamMsgLogger.println.html#CSJ2K_j2k_util_StreamMsgLogger_println_System_String_System_Int32_System_Int32_">println(string, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the string 'str' to the 'out' stream, appending a newline. The
message is reformatted to the line width given to the constructors and
using 'flind' characters to indent the first line and 'ind' characters
to indent the second line. However, any newlines appearing in 'str' are
respected. The output device may or may not display the string until
flush() is called, depending on the autoflush state of the PrintWriter,
to be sure flush() should be called to write the string to the
device. This method just prints the string, the string does not make
part of a &quot;message&quot; in the sense that noe severity is associated to it.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_StreamMsgLogger_printmsg_System_Int32_System_String_" data-uid="CSJ2K.j2k.util.StreamMsgLogger.printmsg(System.Int32,System.String)">
          <a class="xref" href="CSJ2K.j2k.util.StreamMsgLogger.printmsg.html#CSJ2K_j2k_util_StreamMsgLogger_printmsg_System_Int32_System_String_">printmsg(int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the message 'msg' to the output device, appending a newline,
with severity 'sev'. The severity of the message is prepended to the
message.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
