Files
xomb-docs/kernel/core/log.html
2013-03-14 01:31:54 -04:00

43 lines
1.3 KiB
HTML

<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>kernel.core.log</title>
</head><body>
<h1>kernel.core.log</h1>
<!-- Generated by Ddoc from ../kernel/core/log.d -->
<br><br>
<dl><dt><big>struct <u>Log</u>;
</big></dt>
<dd>This structure implements the logging for the kernel.
<br><br>
<b>USAGE:</b><br>
<pre class="d_code"> <font color=green>// DoAThing returns an ErrorVal
</font>
<u>Log</u>.print(<font color=red>"Doing a thing"</font>);
<u>Log</u>.result(DoAThing());
<font color=green>// Will Print:
</font> <font color=green>// Doing a thing ........................ [ OK ]
</font> <font color=green>// or
</font> <font color=green>// Doing a thing ........................ [FAIL]
</font></pre>
<br><br>
<dl><dt><big>static ErrorVal <u>print</u>(char[] <i>message</i>);
</big></dt>
<dd>This function prints a <i>message</i> and an error
to a log line on the screen.<br><br>
</dd>
<dt><big>static ErrorVal <u>result</u>(ErrorVal <i>e</i>);
</big></dt>
<dd>This function records the <u>result</u> for the last line in the log and
then pops it off the stack.<br><br>
</dd>
</dl>
</dd>
</dl>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>