PEARのLogのドキュメントguide.txtのような形式は、何なんだろう?何か別の形式からの自動変換なのだろうか。
ちゃんと規約とかあるのだろうか。見やすいし、自動で他形式に変換とかもしやすいかも知れない。
=================
The Log Package
=================
User Documentation
:Author: Jon Parise
:Contact: jon@
php.net
:Date: $Date: 2004/01/31 21:48:16 $
:Revision: $Revision: 1.10 $
.. contents:: Contents
.. section-numbering::
Using Log Handlers
==================
The Log package is implemented as a framework that supports the notion of
backend-specific log handlers. The base logging object (defined by the `Log
class`_) is primarily an abstract interface to the currently configured
handler.
A wide variety of handlers are distributed with the Log package, and, should
none of them fit your application's needs, it's easy to `write your own`__.
.. _Log class: http://
cvs.
php.net/co.
php/
pear/Log/Log.
php
__ `Custom Handlers`_
Creating a Log Object
There are three ways to create Log objects:
- Using the ``Log::factory()`` method
- Using the ``Log::singleton()`` method
- Direct instantiation
The Factory Method
~~~~~~~~~~~~~~~~~~
The ``Log::factory()`` method implements the `Factory Pattern`_. It allows