/usr/share/doc/libocsigen-ocaml-doc/html/api/Ocsigen_messages.html is in libocsigen-ocaml-doc 1.3.4-2build4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="XHTML.html">
<link rel="next" href="Ocsigen_headers.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Eliom_mkforms" rel="Chapter" href="Eliom_mkforms.html">
<link title="Eliom_mkreg" rel="Chapter" href="Eliom_mkreg.html">
<link title="Eliom_predefmod" rel="Chapter" href="Eliom_predefmod.html">
<link title="Eliom_common" rel="Chapter" href="Eliom_common.html">
<link title="Eliom_parameters" rel="Chapter" href="Eliom_parameters.html">
<link title="Eliom_services" rel="Chapter" href="Eliom_services.html">
<link title="Eliom_sessions" rel="Chapter" href="Eliom_sessions.html">
<link title="Eliom_extensions" rel="Chapter" href="Eliom_extensions.html">
<link title="Ocsigen_extensions" rel="Chapter" href="Ocsigen_extensions.html">
<link title="Ocsigen_parseconfig" rel="Chapter" href="Ocsigen_parseconfig.html">
<link title="Ocsigen_server" rel="Chapter" href="Ocsigen_server.html">
<link title="Xhtmlpretty_streams" rel="Chapter" href="Xhtmlpretty_streams.html">
<link title="Xhtmlcompact_streams" rel="Chapter" href="Xhtmlcompact_streams.html">
<link title="Xhtmlpretty" rel="Chapter" href="Xhtmlpretty.html">
<link title="Xhtmlcompact" rel="Chapter" href="Xhtmlcompact.html">
<link title="XHTML" rel="Chapter" href="XHTML.html">
<link title="Ocsigen_messages" rel="Chapter" href="Ocsigen_messages.html">
<link title="Ocsigen_headers" rel="Chapter" href="Ocsigen_headers.html">
<link title="Ocsigen_http_client" rel="Chapter" href="Ocsigen_http_client.html">
<link title="Ocsigen_http_frame" rel="Chapter" href="Ocsigen_http_frame.html">
<link title="Ocsigen_http_com" rel="Chapter" href="Ocsigen_http_com.html">
<link title="Ocsigen_charset_mime" rel="Chapter" href="Ocsigen_charset_mime.html">
<link title="Ocsigen_senders" rel="Chapter" href="Ocsigen_senders.html">
<link title="Ocsigen_stream" rel="Chapter" href="Ocsigen_stream.html">
<link title="Eliom_tools_common" rel="Chapter" href="Eliom_tools_common.html">
<link title="Eliom_tools" rel="Chapter" href="Eliom_tools.html">
<link title="Eliom_obrowser" rel="Chapter" href="Eliom_obrowser.html">
<link title="Polytables" rel="Chapter" href="Polytables.html">
<link title="Ocsigen_cache" rel="Chapter" href="Ocsigen_cache.html">
<link title="Ocsipersist" rel="Chapter" href="Ocsipersist.html">
<link title="Authbasic" rel="Chapter" href="Authbasic.html">
<link title="Ocsigen_LocalFiles" rel="Chapter" href="Ocsigen_LocalFiles.html">
<link title="Ocsigen_getcommandline" rel="Chapter" href="Ocsigen_getcommandline.html">
<link title="Simplexmlparser" rel="Chapter" href="Simplexmlparser.html">
<link title="Xhtmltypes" rel="Chapter" href="Xhtmltypes.html">
<link title="Eliom_duce" rel="Chapter" href="Eliom_duce.html">
<link title="Xhtmltypes_duce" rel="Chapter" href="Xhtmltypes_duce.html">
<link title="Eliom_duce_tools" rel="Chapter" href="Eliom_duce_tools.html"><title>Ocsigen_messages</title>
</head>
<body>
<div class="navbar"><a href="XHTML.html">Previous</a>
<a href="index.html">Up</a>
<a href="Ocsigen_headers.html">Next</a>
</div>
<center><h1>Module <a href="type_Ocsigen_messages.html">Ocsigen_messages</a></h1></center>
<br>
<pre><span class="keyword">module</span> Ocsigen_messages: <code class="code">sig</code> <a href="Ocsigen_messages.html">..</a> <code class="code">end</code></pre>Writing messages in the logs<br>
<hr width="100%">
<pre><span id="VALaccesslog"><span class="keyword">val</span> accesslog</span> : <code class="type">string -> unit</code></pre><div class="info">
Write a message in access.log<br>
</div>
<pre><span id="VALerrlog"><span class="keyword">val</span> errlog</span> : <code class="type">string -> unit</code></pre><div class="info">
Write a message in errors.log<br>
</div>
<pre><span id="VALwarning"><span class="keyword">val</span> warning</span> : <code class="type">string -> unit</code></pre><div class="info">
Write a message in warnings.log<br>
</div>
<pre><span id="VALdebug"><span class="keyword">val</span> debug</span> : <code class="type">(unit -> string) -> unit</code></pre><div class="info">
Write a message only in debugging mode (-V option) - Non cooperative<br>
</div>
<pre><span id="VALdebug2"><span class="keyword">val</span> debug2</span> : <code class="type">string -> unit</code></pre><div class="info">
Write a message only in debugging mode (-V option) - Non cooperative<br>
</div>
<pre><span id="VALdebug_noel"><span class="keyword">val</span> debug_noel</span> : <code class="type">(unit -> string) -> unit</code></pre><div class="info">
Same as <code class="code">debug</code> without new line at the end - Non cooperative<br>
</div>
<pre><span id="VALdebug_noel2"><span class="keyword">val</span> debug_noel2</span> : <code class="type">string -> unit</code></pre><div class="info">
Same as <code class="code">debug</code> without new line at the end - Non cooperative<br>
</div>
<pre><span id="VALconsole"><span class="keyword">val</span> console</span> : <code class="type">(unit -> string) -> unit</code></pre><div class="info">
Write a message in the console (if not called in silent mode)<br>
</div>
<pre><span id="VALconsole2"><span class="keyword">val</span> console2</span> : <code class="type">string -> unit</code></pre><div class="info">
Write a message in the console (if not called in silent mode)<br>
</div>
<pre><span id="VALunexpected_exception"><span class="keyword">val</span> unexpected_exception</span> : <code class="type">exn -> string -> unit</code></pre><div class="info">
Use that function for all impossible cases in exception handlers
(<code class="code">try ... with ... | e -> unexpected_exception ...</code> or <code class="code">Lwt.catch ...</code>).
A message will be written in <code class="code">warnings.log</code>.
Put something in the string to help locating the problem (usually the name
of the function where is has been called).<br>
</div>
</body></html>
|