PHP库输出无用的信息来记录/标准输出

问题描述:

I have wpf / wso2 installed, and every time I run the php executable, I get garbage output from it:

[joshua@host1 ~]$ php
[Mon Feb 27 11:50:43 2012] [info]  Cannot find path /srv/joshua/wsf_c/services.
[Mon Feb 27 11:50:43 2012] [info]  [rampart] rampart_mod initialized
[Mon Feb 27 11:50:43 2012] [info]  [rahas]Rahas module initialized

How can I suppress/disable this output. I cannot read the output from my scripts due to these lines being generated repeatedly.

我安装了wpf / wso2,每次运行php可执行文件时,都会从中获取垃圾输出:

  [joshua @ host1~] $ php 
 [Mon Feb 27 11:50:43 2012] [info]找不到路径/ srv / joshua / wsf_c / services。  n [Mon Feb 27 11:50:43 2012] [info] [rampart] rampart_mod初始化
 [星期一2月27日11:50:43 2012] [info] [rahas] Rahas模块初始化
  code>   pre> 
 
 

如何禁止/禁用此输出。 由于重复生成这些行,我无法读取脚本的输出。 p> div>

These can be redirected to a log by the setting:

wsf.log_path="/path/to/logs"

in php.ini

They are generated by the setting:

wsf.log_level = 3