Php扩展--seasLog日志扩展安装

安装/配置

编译安装

wge thttp://pecl.php.net/get/SeasLog-1.4.4.tgz
tar -zxvfSeasLog-1.4.4.tgz
cd SeasLog-1.4.4/
cd extension/
/usr/local/php-5.3.3/bin/phpize
./configure --with-php-config=/usr/local/php-5.3.3/bin/php-config
make
make install

修改php.ini文件

[seaslog]
extension=seaslog.so
seaslog.default_basepath = /tmp/log
seaslog.default_logger = php_seaslog
seaslog.disting_type = 1
seaslog.disting_by_hour = 0
seaslog.use_buffer = 0
seaslog.buffer_size = 100
seaslog.level = 0
seaslog.trace_error = 1
seaslog.trace_exception = 1

以上完成后重启apache,可以看到seaslog扩展





posted @ 2016-05-12 14:03  linzj  阅读(2168)  评论(0编辑  收藏  举报