You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
24 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>IBase__Logging (infer.IBase__Logging)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../index.html">infer</a> &#x00BB; IBase__Logging</nav><h1>Module <code>IBase__Logging</code></h1></header><aside><p>log messages at different levels of verbosity</p></aside><div class="spec module" id="module-F"><a href="#module-F" class="anchor"></a><code><span class="keyword">module</span> F = Stdlib.Format</code></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include</span> <span class="keyword">module</span> <span class="keyword">type</span> <span class="keyword">of</span> <a href="../IBase/index.html#module-Die">IBase.Die</a></code></span></summary><dl><dt class="spec exception" id="exception-InferExternalError"><a href="#exception-InferExternalError" class="anchor"></a><code><span class="keyword">exception</span> </code><code><span class="exception">InferExternalError</span> <span class="keyword">of</span> string</code></dt><dt class="spec exception" id="exception-InferInternalError"><a href="#exception-InferInternalError" class="anchor"></a><code><span class="keyword">exception</span> </code><code><span class="exception">InferInternalError</span> <span class="keyword">of</span> string</code></dt><dt class="spec exception" id="exception-InferUserError"><a href="#exception-InferUserError" class="anchor"></a><code><span class="keyword">exception</span> </code><code><span class="exception">InferUserError</span> <span class="keyword">of</span> string</code></dt><dt class="spec exception" id="exception-InferExit"><a href="#exception-InferExit" class="anchor"></a><code><span class="keyword">exception</span> </code><code><span class="exception">InferExit</span> <span class="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><dt class="spec type" id="type-error"><a href="#type-error" class="anchor"></a><code><span class="keyword">type</span> error</code><code> = </code><table class="variant"><tr id="type-error.ExternalError" class="anchored"><td class="def constructor"><a href="#type-error.ExternalError" class="anchor"></a><code>| </code><code><span class="constructor">ExternalError</span></code></td></tr><tr id="type-error.InternalError" class="anchored"><td class="def constructor"><a href="#type-error.InternalError" class="anchor"></a><code>| </code><code><span class="constructor">InternalError</span></code></td></tr><tr id="type-error.UserError" class="anchored"><td class="def constructor"><a href="#type-error.UserError" class="anchor"></a><code>| </code><code><span class="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><dt class="spec value" id="val-exit"><a href="#val-exit" class="anchor"></a><code><span class="keyword">val</span> exit : int <span>&#45;&gt;</span> <span class="type-var">'a</span></code></dt><dt class="spec value" id="val-exit_code_of_exception"><a href="#val-exit_code_of_exception" class="anchor"></a><code><span class="keyword">val</span> exit_code_of_exception : <a href="../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.Exn.t <span>&#45;&gt;</span> int</code></dt><dt class="spec value" id="val-set_log_uncaught_exception_callback"><a href="#val-set_log_uncaught_exception_callback" class="anchor"></a><code><span class="keyword">val</span> set_log_uncaught_exception_callback : <span>(exn <span>&#45;&gt;</span> <span>exitcode:int</span> <span>&#45;&gt;</span> unit)</span> <span>&#45;&gt;</span> unit</code></dt><dt class="spec value"