1 <?xml version='1.0' encoding="ISO-8859-1"?>
2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
5 <chapter id="chapter-signals-log">
6 <title>Log signals</title>
8 <refsect1 id="logs.signals" role="signal_proto">
9 <title role="signal_proto.title">List of signals</title>
11 "<link linkend="logs-log-timestamp">log-timestamp</link>"
15 <refsect1 id="logs.signal-details" role="signals">
16 <title role="signals.title">Signal details</title>
18 <refsect2 id="logs-log-timestamp" role="signal">
19 <title>The <literal>"log-timestamp"</literal> signal</title>
21 char * user_function (PurpleLog *log,
27 Emitted to allow plugins to customize the timestamp on a message being logged.
30 Plugins must be careful of logs with a type of PURPLE_LOG_SYSTEM.
32 <variablelist role="params">
34 <term><parameter>log</parameter> :</term>
35 <listitem><simpara>The log the message belongs to.</simpara></listitem>
38 <term><parameter>when</parameter> :</term>
39 <listitem><simpara>The time to be converted to a string.</simpara></listitem>
42 <term><parameter>show_date</parameter> :</term>
43 <listitem><simpara>Whether the date should be displayed.</simpara></listitem>
46 <term><parameter>user_data</parameter> :</term>
47 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
50 <term><emphasis>Returns</emphasis> :</term>
51 <listitem><simpara>A textual representation of the time, or <literal>NULL</literal> to use a default format.</simpara></listitem>