# CSJ2K.j2k.util.MsgLogger.printmsg

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_util_MsgLogger_printmsg_" data-uid="CSJ2K.j2k.util.MsgLogger.printmsg*">printmsg Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_util_MsgLogger_printmsg_" data-uid="CSJ2K.j2k.util.MsgLogger.printmsg*"></a>
<h4 id="CSJ2K_j2k_util_MsgLogger_printmsg_System_Int32_System_String_" data-uid="CSJ2K.j2k.util.MsgLogger.printmsg(System.Int32,System.String)">printmsg(int, string)</h4>
<div class="markdown level1 summary"><p>Prints the message 'msg' to the output device, appending a newline,
with severity 'sev'. Some implementations where the appended newline is
irrelevant may not append the newline. Depending on the implementation
the severity of the message may be added to it. The message is
reformatted as appropriate for the output devic, but any newline
characters are respected.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void printmsg(int sev, string msg)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub printmsg(sev As Integer, msg As String)</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.int32">int</a></td>
      <td><span class="parametername">sev</span></td>
      <td><p>The message severity (LOG, INFO, etc.)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">msg</span></td>
      <td><p>The message to display</p>
</td>
    </tr>
  </tbody>
</table>
</div>
