cvs: peardoc /ja/package/logging log.xml /ja/package/logging/log container.xml examples.xml init.xml log.xml observer.xml
/ja/package/logging/log/log attach.xml detach.xml factory.xml notifyall.xml singleton.xml /ja/package/logging/log/observer factory.xml
| From: | Hideyuki Shimooka | Date: | Fri, 23 Jun 2006 13:53:36 +0000 |
| Subject: | cvs: peardoc /ja/package/logging log.xml /ja/package/logging/log container.xml examples.xml init.xml log.xml observer.xml /ja/package/logging/log/log attach.xml detach.xml factory.xml notifyall.xml singleton.xml /ja/package/logging/log/observer factory.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8066@lists.php.net to get a copy of this message | ||
shimooka Fri Jun 23 13:53:36 2006 UTC
Added files:
/peardoc/ja/package/logging/log/log attach.xml detach.xml
factory.xml notifyall.xml
singleton.xml
/peardoc/ja/package/logging/log container.xml examples.xml init.xml
log.xml observer.xml
/peardoc/ja/package/logging/log/observer factory.xml
/peardoc/ja/package/logging log.xml
Log:
re-added japanese manual
http://cvs.php.net/viewvc.cgi/peardoc/ja/package/logging/log/log/attach.xml?view=markup&rev=1.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/viewvc.cgi/peardoc/ja/package/logging/log/log/detach.xml?view=markup&rev=1.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/viewvc.cgi/peardoc/ja/package/logging/log/log/factory.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/log/factory.xml +++ peardoc/ja/package/logging/log/log/factory.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/log/notifyall.xml?view=markup&rev=1.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/viewvc.cgi/peardoc/ja/package/logging/log/log/singleton.xml?view=markup&rev=1.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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/logging/log/container.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/container.xml +++ peardoc/ja/package/logging/log/container.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: elf Status: ready --> <!-- CREDITS: haruki --> <refentry id="package.logging.log.container"> <refnamediv> <refname>ãã®ã³ã°ã³ã³ãã</refname> <refpurpose> <classname>Log</classname> ããµãã¼ãããæ§ã ãªç¨®é¡ã®ãã¼ã¿ã³ã³ãã </refpurpose> </refnamediv> <refsect1 id="package.logging.log.container.composite"> <title>'composite' - Log_composite</title> <para> è¤æ°ã®åã³ã³ããããæãä»®æ³ãã®ã³ã°ã³ã³ããã使ãã¾ãã ããã«ããã è¤æ°ã®ãã°ã®ã¤ã³ã¹ã¿ã³ã¹ã«åãåºæ¥äºãéä¿¡ãããã¨ãå¯è½ã«ãªãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.console"> <title>'console' - Log_console</title> <para> ãã°ã¡ãã»ã¼ã¸ãããã¹ãã³ã³ã½ã¼ã«ã«æ¸ãåºãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.display"> <title>'display' - Log_display</title> <para> ãã°ã¡ãã»ã¼ã¸ããã©ã¦ã¶ç»é¢ã«æ¸ãåºãã¾ã (<function>echo</function> ã使ç¨ãã¾ã)ã </para> </refsect1> <refsect1 id="package.logging.log.container.error_log"> <title>'error_log' - Log_error_log</title> <para> ãã°ã¡ãã»ã¼ã¸ã« PHP ã® <function>error_log</function> 颿°ã使ç¨ãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.file"> <title>'file' - Log_file</title> <para> ãã¼ã«ã«ãã¡ã¤ã«ã·ã¹ãã ä¸ã®ä»»æã®ãã¡ã¤ã«ã«ãã¼ã¿ãæ ¼ç´ãã¾ã (PHP ã®ãã¡ã¤ã«ã·ã¹ãã æ©è½ã使ç¨ãã¦ã ã¢ã¯ã»ã¹å¯è½ãªä»»æã®ãã¡ã¤ã«ãåç §ãã¾ã)ã </para> </refsect1> <refsect1 id="package.logging.log.container.mail"> <title>'mail' - Log_mail</title> <para> ã¡ã¼ã«ããã¯ã¹ã«ãã°ã¡ãã»ã¼ã¸ãéä¿¡ãã¾ãã å®éã«ã¯ããã¬ã¼ã<function>close</function>ããæã ãããã¯ããã¹ãã©ã¯ã¿ãå¼ã°ãã(ã¹ã¯ãªãããçµäºãã)æã« ã¡ã¼ã«ãéä¿¡ããã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.mcal"> <title>'mcal' - Log_mcal</title> <para> ã«ã¬ã³ãã¢ããªã±ã¼ã·ã§ã³ã«ãã¼ã¿ãã¹ãã¢ãã¾ãã ããã«ã¯ã<command>libmcal</command> ããã³ <command>mcal</command> PHP æ¡å¼µã¢ã¸ã¥ã¼ã«ãå¿ è¦ã§ãã </para> </refsect1> <refsect1 id="package.logging.log.container.null"> <title>'null' - Log_null</title> <para> åã«ãã°ã¤ãã³ããç ´æ£ãã¾ãã ã¡ãã»ã¼ã¸ãè¨é²ããå¿ è¦ããªãéç¥ã«å¯¾ãã¦ä½¿ç¨ãã¾ãã </para> </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 id="package.logging.log.container.sqlite"> <title>'sqlite' - Log_sqlite</title> <para> PHP ãã¤ãã£ãã® SQLite 颿°ã使ç¨ã㦠SQLite ã«ãã¼ã¿ãã¹ãã¢ãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.syslog"> <title>'syslog' - Log_syslog</title> <para> Unix ç³»ã·ã¹ãã ã§ã¯ <command>syslog</command> ãã Windows NT/2000/XP ç³»ã·ã¹ãã ã§ã¯ <command>ã¤ãã³ããã°</command> ã使ã£ã¦ãã¼ã¿ãã¹ãã¢ãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.win"> <title>'win' - Log_win</title> <para> å¥ã®ãã©ã¦ã¶ã¦ã£ã³ãã¦ã«ãã°ã¡ãã»ã¼ã¸ã表示ãã¾ãã </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/viewvc.cgi/peardoc/ja/package/logging/log/examples.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/examples.xml +++ peardoc/ja/package/logging/log/examples.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: elf Status: ready --> <refentry id="package.logging.log.examples"> <refnamediv> <refname>ä¾</refname> <refpurpose> <classname>Log</classname> ã¯ã©ã¹ã®ä½¿ãæ¹ </refpurpose> </refnamediv> <refsect1> <title>ãã¡ã¤ã«ã«è¨é²ãã</title> <example> <title></title> <para> 次ã®ã³ã¼ãä¾ã§ã¯ããã°ã¡ãã»ã¼ã¸ããã¹ã¦ <filename>user.log</filename> ãã¡ã¤ã«ã«æ¸ããã¾ãã </para> <programlisting role="php"> <![CDATA[ <?php require_once 'Log.php'; $conf = array('mode' => 0600, 'timeFormat' => '%X %x'); $log = &Log::singleton('file', '/tmp/user.log', 'test1', $conf, LOG_INFO); for ($i = 0; $i < 12; $i++) { $log->log("Foo: $i", LOG_INFO); } $log->close(); ?> ]]> </programlisting> </example> </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/viewvc.cgi/peardoc/ja/package/logging/log/init.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/init.xml +++ peardoc/ja/package/logging/log/init.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/log.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/log.xml +++ peardoc/ja/package/logging/log/log.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/observer.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/observer.xml +++ peardoc/ja/package/logging/log/observer.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/observer/factory.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/observer/factory.xml +++ peardoc/ja/package/logging/log/observer/factory.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log.xml +++ peardoc/ja/package/logging/log.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: haruki Status: ready --> <sect1 id="package.logging.log"> <title>Log</title> <para> ãã¾ãã¾ãªãã°å¦çã¡ã«ããºã ã®æ½è±¡åããã³ Subject-Observer ãã¿ã¼ã³ã å®è£ ãã¦ãã¾ãã </para> <para> å®å ¨ãªãªã³ã©ã¤ã³ããã¥ã¡ã³ãã¯ãã¡ã³ããã® webãµã¤ã <ulink url="http://www.indelible.org/pear/Log/guide.php">http://www.indelible.org/pear/Log/guide.php</ulink> ã御覧ãã ããã </para> </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/viewvc.cgi/peardoc/ja/package/logging/log/log/attach.xml?view=markup&rev=1.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/viewvc.cgi/peardoc/ja/package/logging/log/log/detach.xml?view=markup&rev=1.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/viewvc.cgi/peardoc/ja/package/logging/log/log/factory.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/log/factory.xml +++ peardoc/ja/package/logging/log/log/factory.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/log/notifyall.xml?view=markup&rev=1.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/viewvc.cgi/peardoc/ja/package/logging/log/log/singleton.xml?view=markup&rev=1.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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/logging/log/container.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/container.xml +++ peardoc/ja/package/logging/log/container.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: elf Status: ready --> <!-- CREDITS: haruki --> <refentry id="package.logging.log.container"> <refnamediv> <refname>ãã®ã³ã°ã³ã³ãã</refname> <refpurpose> <classname>Log</classname> ããµãã¼ãããæ§ã ãªç¨®é¡ã®ãã¼ã¿ã³ã³ãã </refpurpose> </refnamediv> <refsect1 id="package.logging.log.container.composite"> <title>'composite' - Log_composite</title> <para> è¤æ°ã®åã³ã³ããããæãä»®æ³ãã®ã³ã°ã³ã³ããã使ãã¾ãã ããã«ããã è¤æ°ã®ãã°ã®ã¤ã³ã¹ã¿ã³ã¹ã«åãåºæ¥äºãéä¿¡ãããã¨ãå¯è½ã«ãªãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.console"> <title>'console' - Log_console</title> <para> ãã°ã¡ãã»ã¼ã¸ãããã¹ãã³ã³ã½ã¼ã«ã«æ¸ãåºãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.display"> <title>'display' - Log_display</title> <para> ãã°ã¡ãã»ã¼ã¸ããã©ã¦ã¶ç»é¢ã«æ¸ãåºãã¾ã (<function>echo</function> ã使ç¨ãã¾ã)ã </para> </refsect1> <refsect1 id="package.logging.log.container.error_log"> <title>'error_log' - Log_error_log</title> <para> ãã°ã¡ãã»ã¼ã¸ã« PHP ã® <function>error_log</function> 颿°ã使ç¨ãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.file"> <title>'file' - Log_file</title> <para> ãã¼ã«ã«ãã¡ã¤ã«ã·ã¹ãã ä¸ã®ä»»æã®ãã¡ã¤ã«ã«ãã¼ã¿ãæ ¼ç´ãã¾ã (PHP ã®ãã¡ã¤ã«ã·ã¹ãã æ©è½ã使ç¨ãã¦ã ã¢ã¯ã»ã¹å¯è½ãªä»»æã®ãã¡ã¤ã«ãåç §ãã¾ã)ã </para> </refsect1> <refsect1 id="package.logging.log.container.mail"> <title>'mail' - Log_mail</title> <para> ã¡ã¼ã«ããã¯ã¹ã«ãã°ã¡ãã»ã¼ã¸ãéä¿¡ãã¾ãã å®éã«ã¯ããã¬ã¼ã<function>close</function>ããæã ãããã¯ããã¹ãã©ã¯ã¿ãå¼ã°ãã(ã¹ã¯ãªãããçµäºãã)æã« ã¡ã¼ã«ãéä¿¡ããã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.mcal"> <title>'mcal' - Log_mcal</title> <para> ã«ã¬ã³ãã¢ããªã±ã¼ã·ã§ã³ã«ãã¼ã¿ãã¹ãã¢ãã¾ãã ããã«ã¯ã<command>libmcal</command> ããã³ <command>mcal</command> PHP æ¡å¼µã¢ã¸ã¥ã¼ã«ãå¿ è¦ã§ãã </para> </refsect1> <refsect1 id="package.logging.log.container.null"> <title>'null' - Log_null</title> <para> åã«ãã°ã¤ãã³ããç ´æ£ãã¾ãã ã¡ãã»ã¼ã¸ãè¨é²ããå¿ è¦ããªãéç¥ã«å¯¾ãã¦ä½¿ç¨ãã¾ãã </para> </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 id="package.logging.log.container.sqlite"> <title>'sqlite' - Log_sqlite</title> <para> PHP ãã¤ãã£ãã® SQLite 颿°ã使ç¨ã㦠SQLite ã«ãã¼ã¿ãã¹ãã¢ãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.syslog"> <title>'syslog' - Log_syslog</title> <para> Unix ç³»ã·ã¹ãã ã§ã¯ <command>syslog</command> ãã Windows NT/2000/XP ç³»ã·ã¹ãã ã§ã¯ <command>ã¤ãã³ããã°</command> ã使ã£ã¦ãã¼ã¿ãã¹ãã¢ãã¾ãã </para> </refsect1> <refsect1 id="package.logging.log.container.win"> <title>'win' - Log_win</title> <para> å¥ã®ãã©ã¦ã¶ã¦ã£ã³ãã¦ã«ãã°ã¡ãã»ã¼ã¸ã表示ãã¾ãã </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/viewvc.cgi/peardoc/ja/package/logging/log/examples.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/examples.xml +++ peardoc/ja/package/logging/log/examples.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: elf Status: ready --> <refentry id="package.logging.log.examples"> <refnamediv> <refname>ä¾</refname> <refpurpose> <classname>Log</classname> ã¯ã©ã¹ã®ä½¿ãæ¹ </refpurpose> </refnamediv> <refsect1> <title>ãã¡ã¤ã«ã«è¨é²ãã</title> <example> <title></title> <para> 次ã®ã³ã¼ãä¾ã§ã¯ããã°ã¡ãã»ã¼ã¸ããã¹ã¦ <filename>user.log</filename> ãã¡ã¤ã«ã«æ¸ããã¾ãã </para> <programlisting role="php"> <![CDATA[ <?php require_once 'Log.php'; $conf = array('mode' => 0600, 'timeFormat' => '%X %x'); $log = &Log::singleton('file', '/tmp/user.log', 'test1', $conf, LOG_INFO); for ($i = 0; $i < 12; $i++) { $log->log("Foo: $i", LOG_INFO); } $log->close(); ?> ]]> </programlisting> </example> </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/viewvc.cgi/peardoc/ja/package/logging/log/init.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/init.xml +++ peardoc/ja/package/logging/log/init.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/log.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/log.xml +++ peardoc/ja/package/logging/log/log.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/observer.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/observer.xml +++ peardoc/ja/package/logging/log/observer.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log/observer/factory.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log/observer/factory.xml +++ peardoc/ja/package/logging/log/observer/factory.xml <!-- $Revision: 1.1 $ --> <!-- 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/viewvc.cgi/peardoc/ja/package/logging/log.xml?view=markup&rev=1.1 Index: peardoc/ja/package/logging/log.xml +++ peardoc/ja/package/logging/log.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: haruki Status: ready --> <sect1 id="package.logging.log"> <title>Log</title> <para> ãã¾ãã¾ãªãã°å¦çã¡ã«ããºã ã®æ½è±¡åããã³ Subject-Observer ãã¿ã¼ã³ã å®è£ ãã¦ãã¾ãã </para> <para> å®å ¨ãªãªã³ã©ã¤ã³ããã¥ã¡ã³ãã¯ãã¡ã³ããã® webãµã¤ã <ulink url="http://www.indelible.org/pear/Log/guide.php">http://www.indelible.org/pear/Log/guide.php</ulink> ã御覧ãã ããã </para> </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 -->