|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!-- EN-Revision: 23739 -->
|
|
|
|
|
|
|
+<!-- EN-Revision: 23743 -->
|
|
|
<!-- Reviewed: no -->
|
|
<!-- Reviewed: no -->
|
|
|
<sect1 id="zend.log.factory">
|
|
<sect1 id="zend.log.factory">
|
|
|
<title>Utiliser la fabrique pour créer des logs</title>
|
|
<title>Utiliser la fabrique pour créer des logs</title>
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
<programlisting language="php"><![CDATA[
|
|
|
$logger = Zend_Log::factory(array(
|
|
$logger = Zend_Log::factory(array(
|
|
|
|
|
+ 'timestampFormat' => 'Y-m-d',
|
|
|
array(
|
|
array(
|
|
|
'writerName' => 'Stream',
|
|
'writerName' => 'Stream',
|
|
|
'writerParams' => array(
|
|
'writerParams' => array(
|
|
@@ -49,6 +50,11 @@ $logger = Zend_Log::factory(array(
|
|
|
</para>
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
|
|
|
+ Les évènements sont journalisés avec le format de date ISO 8601 par défaut. Vous
|
|
|
|
|
+ pouvez choisir votre propre format avec l'option <emphasis>timestampFormat</emphasis>.
|
|
|
|
|
+ </para>
|
|
|
|
|
+
|
|
|
|
|
+ <para>
|
|
|
Chaque objet d'écriture support les options suivantes:
|
|
Chaque objet d'écriture support les options suivantes:
|
|
|
</para>
|
|
</para>
|
|
|
|
|
|