[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-doc
Subject: [PEAR-DOC] cvs: peardoc /ja/package/logging log.xml /ja/package/logging/log container.xml examples.
From: "Haruki Setoyama" <haruki () php ! net>
Date: 2004-06-30 12:17:33
Message-ID: cvsharuki1088597853 () cvsserver
[Download RAW message or body]
haruki Wed Jun 30 08:17:33 2004 EDT
Added files:
/peardoc/ja/package/logging log.xml
/peardoc/ja/package/logging/log/log attach.xml detach.xml
notifyall.xml singleton.xml
Modified files:
/peardoc/ja/package/logging/log container.xml examples.xml init.xml
log.xml observer.xml
/peardoc/ja/package/logging/log/log factory.xml
/peardoc/ja/package/logging/log/observer factory.xml
Log:
Translated all. and sync with en.
["haruki-20040630081733.txt" (text/plain)]
http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/container.xml?r1=1.4&r2=1.5&ty=u
Index: peardoc/ja/package/logging/log/container.xml
diff -u peardoc/ja/package/logging/log/container.xml:1.4 \
peardoc/ja/package/logging/log/container.xml:1.5
--- peardoc/ja/package/logging/log/container.xml:1.4 Sun Mar 21 08:55:02 2004
+++ peardoc/ja/package/logging/log/container.xml Wed Jun 30 08:17:32 2004
@@ -1,112 +1,113 @@
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- EN-Revision: 1.5 Maintainer: elf Status: ready -->
+<!-- CREDITS: haruki -->
<refentry id="package.logging.log.container">
<refnamediv>
<refname>ロギングコンテナ</refname>
<refpurpose>
- <classname>Log</classname>の支援する異なるデータタイプ
+ <classname>Log</classname> \
がサポートする様々な種類のデータコンテナ </refpurpose>
</refnamediv>
<refsect1 id="package.logging.log.container.composite">
<title>'composite' - Log_composite</title>
<para>
- 複数の子コンテナから成る仮想ログコンテナを作成します。
- これは、
- 他のログインスタンスの集合に同じ出来事を送信することを可能にします。
+ 複数の子コンテナから成る仮想ロギングコンテナを作成します。
+ これにより、
+ 複数のログのインスタンスに同じ出来事を送信することが可能になります。
</para>
- </refsect1>
-
+ </refsect1>
+
<refsect1 id="package.logging.log.container.console">
<title>'console' - Log_console</title>
<para>
- Writes log messages to the text console.
+ ログメッセージをテキストコンソールに書き出します。
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.display">
<title>'display' - Log_display</title>
<para>
- ログメッセージをブラウザに表示し、書き込みします
- (<function>echo</function>を使用)。
+ ログメッセージをブラウザ画面に書き出します
+ (<function>echo</function> を使用します)。
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.error_log">
<title>'error_log' - Log_error_log</title>
<para>
- ログメッセージにPHPの<function>error_log</function>関数を使用します。
+ ログメッセージに PHP の <function>error_log</function> \
関数を使用します。 </para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.file">
<title>'file' - Log_file</title>
<para>
ローカルファイルシステ 上の任意のファイルにデータを \
納します
- (PHP のファイルシステ 機能を使用して、
- 任意のアクセス可能なローカルファイルを参照します。) 。
+ (PHP のファイルシステ 機能を使用して、
+ アクセス可能な任意のファイルを参照します)。
</para>
</refsect1>
-
+
<refsect1 id="package.logging.log.container.mail">
<title>'mail' - Log_mail</title>
<para>
メールボックスにログメッセージを送信します。
- メールは実際にはロガーを<function>close</function>した時、
- もしくはデストラクタが呼ばれた(スクリプトが終了した)時です。
+ 実際には、ロガーを<function>close</function>した時、
+ もしくは、デストラクタが呼ばれた(スクリプトが終了した)時に
+ メールが送信されます。
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.mcal">
<title>'mcal' - Log_mcal</title>
<para>
- カレンダアプリケーション。このデータタイプを利用するには、
- <command>libmcal</command>と<command>mcal</command>
- PHP拡張モジュールが必要です。
+ カレンダアプリケーションにデータをストアします。
+ これには、<command>libmcal</command> および <command>mcal</command>
+ PHP 拡張モジュールが必要です。
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.null">
<title>'null' - Log_null</title>
<para>
- 単にログイベントを消費します。
- メッセージを記録する必要がない 合、
- このコンテナは通告に使用することができます。
+ 単にログイベントを 棄します。
+ メッセージを記録する必要がない通知に対して使用します。
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.sql">
<title>'sql' - Log_sql</title>
<para>
<link
linkend="package.database.db">PEAR::DB</link>
- を使用するデータベースのストレージデータです。
+ を使用してデータをストアします。
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.sqlite">
<title>'sqlite' - Log_sqlite</title>
<para>
- PHPのネイティブのSQLite関数を使用する
- SQLiteデータベースのストレージデータです。
+ PHP ネイティブの SQLite 関数を使用して
+ SQLite にデータをストアします。
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.syslog">
<title>'syslog' - Log_syslog</title>
<para>
- Unix 系システ では<command>syslog</command> を、
+ Unix 系システ では <command>syslog</command> を、
Windows NT/2000/XP 系システ では
- <command>イベントログ</command> を使ってデータを 納します。
+ <command>イベントログ</command> \
を使ってデータをストアします。 </para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.logging.log.container.win">
<title>'win' - Log_win</title>
<para>
- 個別のブラウザウィンドウにログメッセージを表示します。
+ 別のブラウザウィンドウにログメッセージを表示します。
</para>
- </refsect1>
+ </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
@@ -127,4 +128,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
+-->
http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/examples.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/ja/package/logging/log/examples.xml
diff -u peardoc/ja/package/logging/log/examples.xml:1.3 \
peardoc/ja/package/logging/log/examples.xml:1.4
--- peardoc/ja/package/logging/log/examples.xml:1.3 Sun Mar 21 08:55:02 2004
+++ peardoc/ja/package/logging/log/examples.xml Wed Jun 30 08:17:32 2004
@@ -1,10 +1,10 @@
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- EN-Revision: 1.3 Maintainer: elf Status: ready -->
<refentry id="package.logging.log.examples">
<refnamediv>
<refname>例</refname>
<refpurpose>
- <classname>Log</classname>クラスの使い方
+ <classname>Log</classname> クラスの使い方
</refpurpose>
</refnamediv>
@@ -14,7 +14,7 @@
<title></title>
<para>
次のコード例では、ログメッセージがすべて \
<filename>user.log</filename>
- に書かれています。
+ ファイルに書かれます。
</para>
<programlisting role="php">
<![CDATA[
http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/init.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/ja/package/logging/log/init.xml
diff -u peardoc/ja/package/logging/log/init.xml:1.3 \
peardoc/ja/package/logging/log/init.xml:1.4
--- peardoc/ja/package/logging/log/init.xml:1.3 Sun Mar 21 08:55:02 2004
+++ peardoc/ja/package/logging/log/init.xml Wed Jun 30 08:17:32 2004
@@ -1,96 +1,97 @@
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.4 Maintainer: elf Status: ready -->
-<refentry id="package.logging.log.init">
- <refnamediv>
- <refname>初期化</refname>
- <refpurpose><classname>Log</classname>オブジェクトの作成</refpurpose>
- </refnamediv>
- <refsect1>
- <title></title>
- <para>
- <classname>Log</classname>
- オブジェクトを作成するには3つの可能な方法があります。
- 直接<classname>Log</classname>オブジェクトを作成する方法か、
- <link linkend="package.logging.log.log.singleton">
- <classname>Log</classname>の<function>&singleton</function></link>または
- <link linkend="package.logging.log.log.factory"><function>factory</function>
- </link>関数を呼ぶ方法です。
- </para>
- <example>
- <title>初期化例</title>
- <programlisting role="php">
- <![CDATA[
-// direct initialization of the 'file' container
-$log = new Log_file('log.txt', 'identity text');
-
-// initialization of the 'file' container through factory()
-$log = &Log::factory('file', 'log.txt', 'identity text');
-
-// initialization of the 'file' container through singleton()
-$log = &Log::singleton('file', 'log.txt', 'identity text');
- ]]>
- </programlisting>
- </example>
- <para>
- 直接<classname>Log</classname>のインスタンスを初期化することは、
- 恐らく理解する最も容易な方法です。
- </para>
- <para>
- 次の2つのアプローチはソフトウェア工学デザインパターン
- ("factory"と"singleton"メタファー)
- です。
- </para>
- <para>
- 特に<function>factory</function>メソッドを呼ぶことは、
- <classname>Log_</classname>
- サブクラスのうち一つの新しいインスタンスを作成します。
- 返されるサブクラスのタイプは、
- <function>factory</function>に渡される最初のパラメーター
- (<parameter>log_type</parameter>)によって指定されます。
- This approach effectively hides
- the subclasses while still allowing the programmer to request a
- concrete instance of a certain subclass.
- これは、ランタイ \
でサブクラスタイプを選ぶ必要のある時に役立ちます。
- </para>
- <para>
- <function>factory</function>は、
- 常にPHPの静止メソッド表記法を使用して呼びます。
- - <literal>Log::factory</literal>.
- </para>
- <para>
- The <function>singleton</function> method is identical to the
- <function>factory</function> method except that it guarantees that
- only a single instance of the requested <classname>Log_</classname>
- subclass exists. The <function>singleton</function> method bases each
- instance's uniqueness on the parameters used in the instance's
- creation. In other words, only one instance with a given set of
- creation parameters will ever be returned by the
- <function>singleton</function> method. The second invocation will
- simply return a reference to the existing instance.
- </para>
- <para>
- <function>singleton</function>メソッドも必ず静的に呼ばれます。
- そしてそれはPHPの参照表記法を要求します。
- - <literal>&Log::singleton</literal>
- </para>
- </refsect1>
-</refentry>
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
-vim600: syn=xml fen fdm=syntax fdl=2 si
-vim: et tw=78 syn=sgml
-vi: ts=1 sw=1
--->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.4 Maintainer: elf Status: ready -->
+<!-- CREDITS: haruki -->
+<refentry id="package.logging.log.init">
+ <refnamediv>
+ <refname>初期化</refname>
+ <refpurpose><classname>Log</classname> オブジェクトの作成</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title></title>
+ <para>
+ <classname>Log</classname> オブジェクトを作成するには 3 \
つの方法があります。 + \
すなわち、直接<classname>Log</classname>オブジェクトを作成する、 + \
<link linkend="package.logging.log.log.singleton"> + \
<classname>Log</classname>の<function>&singleton</function></link>をコールする、
+ もしくは、
+ <link linkend="package.logging.log.log.factory"><function>factory</function>
+ </link>関数をコールするかになります。
+ </para>
+ <example>
+ <title>初期化の例</title>
+ <programlisting role="php">
+ <![CDATA[
+// 'file' コンテナを直接初期化する
+$log = new Log_file('log.txt', 'identity text');
+
+// factory() を使って 'file' コンテナを初期化する
+$log = &Log::factory('file', 'log.txt', 'identity text');
+
+// singleton() を使って 'file' コンテナを初期化する
+$log = &Log::singleton('file', 'log.txt', 'identity text');
+ ]]>
+ </programlisting>
+ </example>
+ <para>
+ 直接 <classname>Log</classname> \
インスタンスを初期化することは、 + \
最もわかり易い方法でしょう。 + </para>
+ <para>
+ 次の2つのアプローチは、
+ ソフトウェア工学で言うところのデザインパターン("factory" \
と "singleton") + を利用しています。
+ </para>
+ <para>
+ <function>factory</function> メソッドを呼ぶと、
+ <classname>Log_</classname> \
サブクラスの内の一つのインスタンスが新しく作成されます。 \
+ 返されるサブクラスのタイプは、 + <function>factory</function> \
に渡される最初のパラメーター + (<parameter>log_type</parameter>) \
によって決まります。 + このアプローチを使うと、
+ プログラ 中であるサブクラスのインスタンスを使う必要がある \
合にも、 + サブクラスの存在をうまく すことができます。
+ これは、実行時にサブクラスのタイプを選ぶ必要がある時に役立ちます。
+ </para>
+ <para>
+ <function>factory</function> は、
+ 以下のように、常にスタティックな形でコールします。
+ - <literal>Log::factory</literal>
+ </para>
+ <para>
+ <function>singleton</function> メソッドは、
+ 要求された <classname>Log_</classname> \
サブクラスのインスタンスが + 1 \
つしか存在しないようになること以外は、<function>factory</function> \
+ メソッドと同じです。 + <function>singleton</function> \
メソッドは、インスタンスが生成される際の + \
パラメータが変わらないことを仮定しています。つまり、 + \
最初のコール時に与えられたパラメータの値を保持するインスタンスのみが
+ <function>singleton</function> メソッドにより返されます。
+ 2 回目以降のコールでは、すでに生成済みのインスタンスへのリファレンスが
+ 返されます。
+ </para>
+ <para>
+ <function>singleton</function>メソッドも、常にスタティックな形でコールします。
+ さらに、以下のように、リファレンスの記法を使用します。。
+ - <literal>&Log::singleton</literal>
+ </para>
+ </refsect1>
+</refentry>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:"../../../../manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/log.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/ja/package/logging/log/log.xml
diff -u peardoc/ja/package/logging/log/log.xml:1.3 \
peardoc/ja/package/logging/log/log.xml:1.4
--- peardoc/ja/package/logging/log/log.xml:1.3 Sun Mar 21 08:55:02 2004
+++ peardoc/ja/package/logging/log/log.xml Wed Jun 30 08:17:32 2004
@@ -1,36 +1,36 @@
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.3 Maintainer: elf Status: ready -->
-<refentry id="package.logging.log.log">
- <refnamediv>
- <refname>Log</refname>
- <refpurpose>ロギング抽象クラス</refpurpose>
- </refnamediv>
- <refsynopsisdiv>
- <synopsis>require_once "Log.php";</synopsis>
- </refsynopsisdiv>
- <refsect1>
- <title>説明</title>
- <simpara>
- ロギングインターフェース関数。
- </simpara>
- </refsect1>
-</refentry>
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
-vim600: syn=xml fen fdm=syntax fdl=2 si
-vim: et tw=78 syn=sgml
-vi: ts=1 sw=1
--->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.3 Maintainer: elf Status: ready -->
+<refentry id="package.logging.log.log">
+ <refnamediv>
+ <refname>Log</refname>
+ <refpurpose>ロギング抽象クラス</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <synopsis>require_once "Log.php";</synopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>説明</title>
+ <simpara>
+ ロギングインターフェース関数です。
+ </simpara>
+ </refsect1>
+</refentry>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:"../../../../manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/observer.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/ja/package/logging/log/observer.xml
diff -u peardoc/ja/package/logging/log/observer.xml:1.3 \
peardoc/ja/package/logging/log/observer.xml:1.4
--- peardoc/ja/package/logging/log/observer.xml:1.3 Sun Mar 21 08:55:02 2004
+++ peardoc/ja/package/logging/log/observer.xml Wed Jun 30 08:17:32 2004
@@ -1,38 +1,39 @@
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.2 Maintainer: elf Status: ready -->
-<refentry id="package.logging.log.observer">
- <refnamediv>
- <refname>Log_Observer</refname>
- <refpurpose>ログ観測クラス</refpurpose>
- </refnamediv>
- <refsynopsisdiv>
- <synopsis>require_once "Log/observer.php";</synopsis>
- </refsynopsisdiv>
- <refsect1>
- <title>説明</title>
- <simpara>
- Log_Observerクラスは、ログ処理を監視し、
- 重要なイベントが発生した 合に行動を起こすために、
- Subject-ObserverパターンのObserver側を実装します。
- </simpara>
- </refsect1>
-</refentry>
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
-vim600: syn=xml fen fdm=syntax fdl=2 si
-vim: et tw=78 syn=sgml
-vi: ts=1 sw=1
--->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.2 Maintainer: elf Status: ready -->
+<!-- CREDITS: haruki -->
+<refentry id="package.logging.log.observer">
+ <refnamediv>
+ <refname>Log_Observer</refname>
+ <refpurpose>ログ オブザーバ クラス</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <synopsis>require_once "Log/observer.php";</synopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>説明</title>
+ <simpara>
+ Log_Observer クラスは、ログ処理を監視し
+ 重要なイベントが発生した \
合に何らかの処理を行えるよう、 + Subject-Observer パターン の \
Observer 側を実装しています。 + </simpara>
+ </refsect1>
+</refentry>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:"../../../../manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/log/factory.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/ja/package/logging/log/log/factory.xml
diff -u peardoc/ja/package/logging/log/log/factory.xml:1.3 \
peardoc/ja/package/logging/log/log/factory.xml:1.4
--- peardoc/ja/package/logging/log/log/factory.xml:1.3 Sun Mar 21 08:56:18 2004
+++ peardoc/ja/package/logging/log/log/factory.xml Wed Jun 30 08:17:33 2004
@@ -1,59 +1,60 @@
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.2 Maintainer: elf Status: ready -->
-<refentry id="package.logging.log.log.factory">
- <refnamediv>
- <refname>Log::factory()</refname>
- <refpurpose>
- 指定した<parameter>log_type</parameter>の具体的なのLogインスタンスを返す
- </refpurpose>
- </refnamediv>
- <refsynopsisdiv>
- <funcsynopsis>
- <funcprototype>
- <funcdef>object <function>Log::factory</function></funcdef>
- <paramdef>string <parameter>log_type</parameter></paramdef>
- <paramdef>string <parameter><optional>log_name</optional></parameter></paramdef>
- <paramdef>string <parameter><optional>ident</optional></parameter></paramdef>
- <paramdef>array <parameter><optional>conf</optional></parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- </refsynopsisdiv>
- <refsect1 id="package.logging.log.log.factory.desc">
- &title.desc;
- <para>
- 指定した <parameter>log_type</parameter>の、
- 具体的な Log インスタンスを返します。
- </para>
- </refsect1>
- <refsect1 id="package.logging.log.log.factory.return">
- &title.returns;
- <para>
- <parameter>object</parameter> -
- 新規生成した具体的な Log インスタンスか、
- エラーの 合は &false; を返します。
- </para>
- </refsect1>
- <refsect1 id="package.logging.log.log.factory.note">
- &title.note;
- ¬e.canstatic;
- </refsect1>
-</refentry>
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../../manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
-vim600: syn=xml fen fdm=syntax fdl=2 si
-vim: et tw=78 syn=sgml
-vi: ts=1 sw=1
--->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.2 Maintainer: elf Status: ready -->
+<!-- CREDITS: haruki -->
+<refentry id="package.logging.log.log.factory">
+ <refnamediv>
+ <refname>Log::factory()</refname>
+ <refpurpose>
+ 指定したタイプのログの具象インスタンスを返す
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>object <function>Log::factory</function></funcdef>
+ <paramdef>string <parameter>log_type</parameter></paramdef>
+ <paramdef>string <parameter><optional>log_name</optional></parameter></paramdef>
+ <paramdef>string <parameter><optional>ident</optional></parameter></paramdef>
+ <paramdef>array <parameter><optional>conf</optional></parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ </refsynopsisdiv>
+ <refsect1 id="package.logging.log.log.factory.desc">
+ &title.desc;
+ <para>
+ 指定した <parameter>log_type</parameter> の
+ 具象インスタンスを返します。
+ </para>
+ </refsect1>
+ <refsect1 id="package.logging.log.log.factory.return">
+ &title.returns;
+ <para>
+ <parameter>object</parameter> -
+ 新たに生成された具象インスタンスを返します。
+ エラーの 合は &false; を返します。
+ </para>
+ </refsect1>
+ <refsect1 id="package.logging.log.log.factory.note">
+ &title.note;
+ ¬e.canstatic;
+ </refsect1>
+</refentry>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:"../../../../../manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/observer/factory.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/ja/package/logging/log/observer/factory.xml
diff -u peardoc/ja/package/logging/log/observer/factory.xml:1.3 \
peardoc/ja/package/logging/log/observer/factory.xml:1.4
--- peardoc/ja/package/logging/log/observer/factory.xml:1.3 Sun Mar 21 08:57:33 2004
+++ peardoc/ja/package/logging/log/observer/factory.xml Wed Jun 30 08:17:33 2004
@@ -1,57 +1,58 @@
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.2 Maintainer: elf Status: ready -->
-<refentry id="package.logging.log.observer.factory">
- <refnamediv>
- <refname>Log_Observer::factory</refname>
- <refpurpose>
- 指定した<parameter>observer_type</parameter>の具体的なのLogインスタンスを返す
- </refpurpose>
- </refnamediv>
- <refsynopsisdiv>
- <funcsynopsis>
- <funcprototype>
- <funcdef>object <function>Log_Observer::factory</function></funcdef>
- <paramdef>string <parameter>observer_type</parameter></paramdef>
- <paramdef>integer \
<parameter><optional>priority</optional></parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- </refsynopsisdiv>
- <refsect1 id="package.logging.log.observer.factory.desc">
- &title.desc;
- <para>
- 指定した<parameter>observer_type</parameter>の、
- 具体的な Log_Observer インスタンスを返します。
- </para>
- </refsect1>
- <refsect1 id="package.logging.log.observer.factory.return">
- &title.returns;
- <para>
- <parameter>object</parameter> -
- 新規生成した具体的な Log_Observer インスタンスか、
- エラーの 合は &false; を返します。
- </para>
- </refsect1>
- <refsect1 id="package.logging.log.observer.factory.note">
- &title.note;
- ¬e.canstatic;
- </refsect1>
-</refentry>
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../../manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
-vim600: syn=xml fen fdm=syntax fdl=2 si
-vim: et tw=78 syn=sgml
-vi: ts=1 sw=1
--->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.2 Maintainer: elf Status: ready -->
+<!-- CREDITS: haruki -->
+<refentry id="package.logging.log.observer.factory">
+ <refnamediv>
+ <refname>Log_Observer::factory</refname>
+ <refpurpose>
+ 指定したタイプのオブザーバの具象インスタンスを返す
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>object <function>Log_Observer::factory</function></funcdef>
+ <paramdef>string <parameter>observer_type</parameter></paramdef>
+ <paramdef>integer \
<parameter><optional>priority</optional></parameter></paramdef> + </funcprototype>
+ </funcsynopsis>
+ </refsynopsisdiv>
+ <refsect1 id="package.logging.log.observer.factory.desc">
+ &title.desc;
+ <para>
+ 指定した <parameter>observer_type</parameter> の
+ 具象インスタンスを返します。
+ </para>
+ </refsect1>
+ <refsect1 id="package.logging.log.observer.factory.return">
+ &title.returns;
+ <para>
+ <parameter>object</parameter> -
+ 新たに生成された具象 Log_Observer インスタンスを返します。
+ エラーの 合は &false; を返します。
+ </para>
+ </refsect1>
+ <refsect1 id="package.logging.log.observer.factory.note">
+ &title.note;
+ ¬e.canstatic;
+ </refsect1>
+</refentry>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:"../../../../../manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
http://cvs.php.net/co.php/peardoc/ja/package/logging/log.xml?r=1.1&p=1
Index: peardoc/ja/package/logging/log.xml
+++ peardoc/ja/package/logging/log.xml
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.2 Maintainer: haruki Status: ready -->
<sect1 id="package.logging.log">
<title>Log</title>
<para>
さまざまなログ処理メカニズ の抽象化および Subject-Observer \
パターンを 実装しています。
</para>
&package.logging.log.container;
&package.logging.log.examples;
&package.logging.log.init;
&package.logging.log.log;
&package.logging.log.log.factory;
&package.logging.log.log.singleton;
&package.logging.log.log.attach;
&package.logging.log.log.detach;
<!-- &package.logging.log.log.notifyall; -->
&package.logging.log.observer;
&package.logging.log.observer.factory;
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/peardoc/ja/package/logging/log/log/attach.xml?r=1.1&p=1
Index: peardoc/ja/package/logging/log/log/attach.xml
+++ peardoc/ja/package/logging/log/log/attach.xml
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.2 Maintainer: haruki Status: ready -->
<!-- CREDITS: haruki -->
<refentry id="package.logging.log.log.attach">
<refnamediv>
<refname>Log::attach()</refname>
<refpurpose>
オブザーバを現在のリストに追 する
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef><function>Log::attach</function></funcdef>
<paramdef>object <parameter>logObserver</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.logging.log.log.attach.desc">
&title.desc;
<para>
ログメッセージが記録されたことが通知されるオブザーバのリストに
<link linkend="package.logging.log.observer">Log_Observer</link> \
のインスタンスを 追 する。
</para>
</refsect1>
<refsect1 id="package.logging.log.log.attach.note">
&title.note;
¬e.notstatic;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/peardoc/ja/package/logging/log/log/detach.xml?r=1.1&p=1
Index: peardoc/ja/package/logging/log/log/detach.xml
+++ peardoc/ja/package/logging/log/log/detach.xml
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.1 Maintainer: elf Status: ready -->
<!-- CREDITS: haruki -->
<refentry id="package.logging.log.log.detach">
<refnamediv>
<refname>Log::detach()</refname>
<refpurpose>
オブザーバを現在のリストから削除する
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef><function>Log::detach</function></funcdef>
<paramdef>object <parameter>logObserver</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.logging.log.log.detach.desc">
&title.desc;
<para>
<link linkend="package.logging.log.observer">Log_Observer</link>
のインスタンスをオブザーバのリストから削除します。
</para>
</refsect1>
<refsect1 id="package.logging.log.log.detach.note">
&title.note;
¬e.notstatic;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/peardoc/ja/package/logging/log/log/notifyall.xml?r=1.1&p=1
Index: peardoc/ja/package/logging/log/log/notifyall.xml
+++ peardoc/ja/package/logging/log/log/notifyall.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.logging.log.log.notifyall">
<refnamediv>
<refname>Log::notifyAll()</refname>
<refpurpose>
Notify all observers.
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef><function>Log::notifyAll</function></funcdef>
<paramdef>array <parameter>messageOb</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.logging.log.log.notifyall.desc">
&title.desc;
<para>
Sends any <link linkend="package.logging.log.observer">Log_Observer</link>
objects listening to this Log the message that was just logged.
</para>
</refsect1>
<refsect1 id="package.logging.log.log.notifyall.note">
&title.note;
¬e.notstatic;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/peardoc/ja/package/logging/log/log/singleton.xml?r=1.1&p=1
Index: peardoc/ja/package/logging/log/log/singleton.xml
+++ peardoc/ja/package/logging/log/log/singleton.xml
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.2 Maintainer: haruki Status: ready -->
<!-- CREDITS: -->
<refentry id="package.logging.log.log.singleton">
<refnamediv>
<refname>Log::singleton()</refname>
<refpurpose>
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef>object <function>Log::singleton</function></funcdef>
<paramdef>string <parameter>log_type</parameter></paramdef>
<paramdef>string <parameter><optional>log_name</optional></parameter></paramdef>
<paramdef>string <parameter><optional>ident</optional></parameter></paramdef>
<paramdef>array <parameter><optional>conf</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.logging.log.log.singleton.desc">
&title.desc;
<para>
指定した <parameter>log_type</parameter> の具象インスタンスへの
リファレンスを返します。同じパラメータで生成されたインスタンスが無い \
合のみ、 新たにインスタンスを生成します。
</para>
<para>
ロガーを作成する箇所が複数あるが、複数のロガーを生成したくは無く、
ロガーが既存かどうかを毎回チェックしたく無い \
合に、使うと良いでしょう。 \
シングルトンパターンでは、これらのチェックを代わって実行してくれます。
</para>
<para>
<note>
<simpara>
<literal>$var = &Log::singleton()</literal> \
という記法でこのメソッドを コールしてく さい。
メソッド名の前のアンパサンド (&) \
が無いと、リファレンスでなく、 \
コピーが返ってしまいます。 </simpara>
</note>
</para>
</refsect1>
<refsect1 id="package.logging.log.log.singleton.return">
&title.returns;
<para>
<parameter>object</parameter> -
具象ログインスタンス。エラー時は &false; が返されます。
</para>
</refsect1>
<refsect1 id="package.logging.log.log.singleton.note">
&title.note;
¬e.canstatic;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
--
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic