355 lines
5.0 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Luadocs for utils/log.lua</title>
<link rel="stylesheet" href="../../luadoc.css" type="text/css" />
<!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/-->
</head>
<body>
<div id="container">
<div id="product">
<div id="product_logo"></div>
<div id="product_name"><big><b></b></big></div>
<div id="product_description"></div>
</div> <!-- id="product" -->
<div id="main">
<div id="navigation">
<h1>LuaDoc</h1>
<ul>
<li><a href="../../index.html">Index</a></li>
</ul>
<!-- Module list -->
<!-- File list -->
<h1>Files</h1>
<ul>
<li>
<a href="../../files/utils/blockedcache.html">utils/blockedcache.lua</a>
</li>
<li>
<a href="../../files/utils/blockutil.html">utils/blockutil.lua</a>
</li>
<li>
<a href="../../files/utils/constants.html">utils/constants.lua</a>
</li>
<li>
<a href="../../files/utils/fisheryates.html">utils/fisheryates.lua</a>
</li>
<li>
<a href="../../files/utils/init.html">utils/init.lua</a>
</li>
<li>
<a href="../../files/utils/interpolate.html">utils/interpolate.lua</a>
</li>
<li>
<a href="../../files/utils/list.html">utils/list.lua</a>
</li>
<li><strong>utils/log.lua</strong></li>
<li>
<a href="../../files/utils/mapmanipulator.html">utils/mapmanipulator.lua</a>
</li>
<li>
<a href="../../files/utils/mathutil.html">utils/mathutil.lua</a>
</li>
<li>
<a href="../../files/utils/noisemanager.html">utils/noisemanager.lua</a>
</li>
<li>
<a href="../../files/utils/pathutil.html">utils/pathutil.lua</a>
</li>
<li>
<a href="../../files/utils/stopwatch.html">utils/stopwatch.lua</a>
</li>
<li>
<a href="../../files/utils/stringutil.html">utils/stringutil.lua</a>
</li>
<li>
<a href="../../files/utils/tableutil.html">utils/tableutil.lua</a>
</li>
<li>
<a href="../../files/utils/test.html">utils/test.lua</a>
</li>
<li>
<a href="../../files/utils/transform.html">utils/transform.lua</a>
</li>
</ul>
</div> <!-- id="navigation" -->
<div id="content">
<h1>File <code>utils/log.lua</code></h1>
<h2>Functions</h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#log.action">log.action</a>&nbsp;(...)</td>
<td class="summary">Logs an action.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#log.error">log.error</a>&nbsp;(...)</td>
<td class="summary">Logs an error.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#log.info">log.info</a>&nbsp;(...)</td>
<td class="summary">Logs an info.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#log.log">log.log</a>&nbsp;(level, ...)</td>
<td class="summary">Logs a message with the given level.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#log.set_print_all">log.set_print_all</a>&nbsp;(print_all)</td>
<td class="summary">Allows to activate or deactivate that all messages are printed.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#log.verbose">log.verbose</a>&nbsp;(...)</td>
<td class="summary">Logs a message.</td>
</tr>
</table>
<br/>
<br/>
<h2><a name="functions"></a>Functions</h2>
<dl class="function">
<dt><a name="log.action"></a><strong>log.action</strong>&nbsp;(...)</dt>
<dd>
Logs an action.
<h3>Parameters</h3>
<ul>
<li>
...: The message to log.
</li>
</ul>
</dd>
<dt><a name="log.error"></a><strong>log.error</strong>&nbsp;(...)</dt>
<dd>
Logs an error.
<h3>Parameters</h3>
<ul>
<li>
...: The message to log.
</li>
</ul>
</dd>
<dt><a name="log.info"></a><strong>log.info</strong>&nbsp;(...)</dt>
<dd>
Logs an info.
<h3>Parameters</h3>
<ul>
<li>
...: The message to log.
</li>
</ul>
</dd>
<dt><a name="log.log"></a><strong>log.log</strong>&nbsp;(level, ...)</dt>
<dd>
Logs a message with the given level.
<h3>Parameters</h3>
<ul>
<li>
level: The log level, should be action, error, info or verbose to stay compatible with minetest.
</li>
<li>
...: The message to log.
</li>
</ul>
</dd>
<dt><a name="log.set_print_all"></a><strong>log.set_print_all</strong>&nbsp;(print_all)</dt>
<dd>
Allows to activate or deactivate that all messages are printed.
<h3>Parameters</h3>
<ul>
<li>
print_all: true if all messages should be printed, false if messages should be handed to Minetest (if available).
</li>
</ul>
</dd>
<dt><a name="log.verbose"></a><strong>log.verbose</strong>&nbsp;(...)</dt>
<dd>
Logs a message.
<h3>Parameters</h3>
<ul>
<li>
...: The message to log.
</li>
</ul>
</dd>
</dl>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>