http://www-900.ibm.com/developerWorks/linux/sdk/php/pear2/index.shtml

解决方案 »

  1.   

    // 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');