cvs: peardoc /en/package/logging/log examples.xml
| From: | Alan Knowles | Date: | Tue, 17 Jun 2003 12:37:20 +0000 |
| Subject: | cvs: peardoc /en/package/logging/log examples.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-948@lists.php.net to get a copy of this message | ||
alan_k Tue Jun 17 08:37:20 2003 EDT
Modified files:
/peardoc/en/package/logging/log examples.xml
Log:
typos fixed to try and get xsltproc to read this (use cdata)
Index: peardoc/en/package/logging/log/examples.xml
diff -u peardoc/en/package/logging/log/examples.xml:1.1
peardoc/en/package/logging/log/examples.xml:1.2
--- peardoc/en/package/logging/log/examples.xml:1.1 Mon Apr 14 14:02:43 2003
+++ peardoc/en/package/logging/log/examples.xml Tue Jun 17 08:37:20 2003
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.logging.log.examples">
<refnamediv>
<refname>Examples</refname>
@@ -16,18 +16,21 @@
into the file <filename>user.log</filename>.
</para>
<programlisting role="php">
-<?php
+<![CDATA[
+
+<?php
require_once 'Log.php';
$conf = array('mode' => 0600, 'timeFormat' => '%X %x');
-$log = &Log::singleton('file', '/tmp/out1.log', 'test1',
$conf, LOG_INFO);
+$log = &Log::singleton('file', '/tmp/out1.log', 'test1', $conf,
LOG_INFO);
for ($i = 0; $i < 12; $i++) {
$log->log("Foo: $i", LOG_INFO);
}
$log->close();
-?>
+?>
+]]>
</programlisting>
</example>
</refsect1>