<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>IBase__Logging (infer.IBase__Logging)</title><linkrel="stylesheet"href="../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.1"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../index.html">infer</a>» IBase__Logging</nav><h1>Module <code>IBase__Logging</code></h1></header><aside><p>log messages at different levels of verbosity</p></aside><divclass="spec module"id="module-F"><ahref="#module-F"class="anchor"></a><code><spanclass="keyword">module</span> F = Stdlib.Format</code></div><div><divclass="spec include"><divclass="doc"><detailsopen="open"><summary><spanclass="def"><code><spanclass="keyword">include</span><spanclass="keyword">module</span><spanclass="keyword">type</span><spanclass="keyword">of</span><ahref="../IBase/index.html#module-Die">IBase.Die</a></code></span></summary><dl><dtclass="spec exception"id="exception-InferExternalError"><ahref="#exception-InferExternalError"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferExternalError</span><spanclass="keyword">of</span> string</code></dt><dtclass="spec exception"id="exception-InferInternalError"><ahref="#exception-InferInternalError"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferInternalError</span><spanclass="keyword">of</span> string</code></dt><dtclass="spec exception"id="exception-InferUserError"><ahref="#exception-InferUserError"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferUserError</span><spanclass="keyword">of</span> string</code></dt><dtclass="spec exception"id="exception-InferExit"><ahref="#exception-InferExit"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferExit</span><spanclass="keyword">of</span> int</code></dt><dd><p>This can be used to avoid scattering exit invocations all over the codebase</p></dd></dl><dl><dtclass="spec type"id="type-error"><ahref="#type-error"class="anchor"></a><code><spanclass="keyword">type</span> error</code><code> = </code><tableclass="variant"><trid="type-error.ExternalError"class="anchored"><tdclass="def constructor"><ahref="#type-error.ExternalError"class="anchor"></a><code>| </code><code><spanclass="constructor">ExternalError</span></code></td></tr><trid="type-error.InternalError"class="anchored"><tdclass="def constructor"><ahref="#type-error.InternalError"class="anchor"></a><code>| </code><code><spanclass="constructor">InternalError</span></code></td></tr><trid="type-error.UserError"class="anchored"><tdclass="def constructor"><ahref="#type-error.UserError"class="anchor"></a><code>| </code><code><spanclass="constructor">UserError</span></code></td></tr></table></dt><dd><p>kind of error for <code>die</code>, with similar semantics as <code>Logging.{external,internal,user}_error</code></p></dd></dl><dl><dtclass="spec value"id="val-exit"><ahref="#val-exit"class="anchor"></a><code><spanclass="keyword">val</span> exit : int <span>-></span><spanclass="type-var">'a</span></code></dt><dtclass="spec value"id="val-exit_code_of_exception"><ahref="#val-exit_code_of_exception"class="anchor"></a><code><spanclass="keyword">val</span> exit_code_of_exception : <ahref="../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.Exn.t <span>-></span> int</code></dt><dtclass="spec value"id="val-set_log_uncaught_exception_callback"><ahref="#val-set_log_uncaught_exception_callback"class="anchor"></a><code><spanclass="keyword">val</span> set_log_uncaught_exception_callback : <span>(exn <span>-></span><span>exitcode:int</span><span>-></span> unit)</span><span>-></span> unit</code></dt><dtclass="spec value"