PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/modules/mod_logging/mod_logging.html

http://github.com/zotonic/zotonic
HTML | 87 lines | 73 code | 14 blank | 0 comment | 0 complexity | 4112b9f8186ceab30262280cddcb9e8a MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module mod_logging</title>
 5<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
 6</head>
 7<body bgcolor="white">
 8<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
 9<hr>
10
11<h1>Module mod_logging</h1>
12<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Simple database logging.
13<p>Copyright Š 2010 Arjan Scherpenisse
14  Date: 2010-06-01</p>
15
16<p><b>Behaviours:</b> <a href="gen_server.html"><tt>gen_server</tt></a>.</p>
17<p><b>Authors:</b> Arjan Scherpenisse (<a href="mailto:arjan@scherpenisse.net"><tt>arjan@scherpenisse.net</tt></a>).</p>
18
19<h2><a name="description">Description</a></h2>Simple database logging.
20<h2><a name="index">Function Index</a></h2>
21<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#code_change-3">code_change/3</a></td><td>Convert process state when code is changed.</td></tr>
22<tr><td valign="top"><a href="#handle_call-3">handle_call/3</a></td><td>Handling call messages.</td></tr>
23<tr><td valign="top"><a href="#handle_cast-2">handle_cast/2</a></td><td></td></tr>
24<tr><td valign="top"><a href="#handle_info-2">handle_info/2</a></td><td>Handling all non call/cast messages.</td></tr>
25<tr><td valign="top"><a href="#init-1">init/1</a></td><td>Initiates the server.</td></tr>
26<tr><td valign="top"><a href="#observe_search_query-2">observe_search_query/2</a></td><td></td></tr>
27<tr><td valign="top"><a href="#pid_observe_log-3">pid_observe_log/3</a></td><td></td></tr>
28<tr><td valign="top"><a href="#start_link-1">start_link/1</a></td><td>Starts the server.</td></tr>
29<tr><td valign="top"><a href="#terminate-2">terminate/2</a></td><td>This function is called by a gen_server when it is about to
30  terminate.</td></tr>
31</table>
32
33<h2><a name="functions">Function Details</a></h2>
34
35<h3 class="function"><a name="code_change-3">code_change/3</a></h3>
36<div class="spec">
37<p><tt>code_change(OldVsn, State, Extra) -&gt; {ok, NewState}</tt></p>
38</div><p>Convert process state when code is changed</p>
39
40<h3 class="function"><a name="handle_call-3">handle_call/3</a></h3>
41<div class="spec">
42<p><tt>handle_call(Message::Request, From, State) -&gt; {reply, Reply, State} | {reply, Reply, State, Timeout} | {noreply, State} | {noreply, State, Timeout} | {stop, Reason, Reply, State} | {stop, Reason, State}</tt></p>
43</div><p>Handling call messages</p>
44
45<h3 class="function"><a name="handle_cast-2">handle_cast/2</a></h3>
46<div class="spec">
47<p><tt>handle_cast(Message, State) -&gt; any()</tt></p>
48</div>
49
50<h3 class="function"><a name="handle_info-2">handle_info/2</a></h3>
51<div class="spec">
52<p><tt>handle_info(Info, State) -&gt; {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}</tt></p>
53</div><p>Handling all non call/cast messages</p>
54
55<h3 class="function"><a name="init-1">init/1</a></h3>
56<div class="spec">
57<p><tt>init(Args) -&gt; {ok, State} | {ok, State, Timeout} | ignore | {stop, Reason}</tt></p>
58</div><p>Initiates the server.</p>
59
60<h3 class="function"><a name="observe_search_query-2">observe_search_query/2</a></h3>
61<div class="spec">
62<p><tt>observe_search_query(X1, Context) -&gt; any()</tt></p>
63</div>
64
65<h3 class="function"><a name="pid_observe_log-3">pid_observe_log/3</a></h3>
66<div class="spec">
67<p><tt>pid_observe_log(Pid, LogMsg, Context) -&gt; any()</tt></p>
68</div>
69
70<h3 class="function"><a name="start_link-1">start_link/1</a></h3>
71<div class="spec">
72<p><tt>start_link(Args) -&gt; {ok, Pid} | ignore | {error, Error}</tt></p>
73</div><p>Starts the server</p>
74
75<h3 class="function"><a name="terminate-2">terminate/2</a></h3>
76<div class="spec">
77<p><tt>terminate(Reason, State) -&gt; <a href="#type-void">void()</a></tt></p>
78</div><p>This function is called by a gen_server when it is about to
79  terminate. It should be the opposite of Module:init/1 and do any necessary
80  cleaning up. When it returns, the gen_server terminates with Reason.
81  The return value is ignored.</p>
82<hr>
83
84<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
85<p><i>Generated by EDoc, Oct 13 2011, 14:45:58.</i></p>
86</body>
87</html>