webim icon indicating copy to clipboard operation
webim copied to clipboard

Uncaught exception 'Swoole\Exception\Factory' with message 'log->master is not found.'

Open zengmm opened this issue 7 years ago • 1 comments

swoole

swoole support => enabled Version => 2.0.7 Author => tianfeng.han[email: [email protected]] kqueue => enabled rwlock => enabled async http/websocket client => enabled pcre => enabled zlib => enabled

Directive => Local Value => Master Value swoole.aio_thread_num => 2 => 2 swoole.display_errors => On => On swoole.use_namespace => On => On swoole.fast_serialize => Off => Off swoole.unixsock_buffer_size => 8388608 => 8388608

zengmm avatar Mar 25 '17 14:03 zengmm

我在Aliyun部署的时候也遇到了同样的问题,解决方案:在config目录下增加文件 log.php文件。文件内容:

<?php
$log['master'] = array(
    'type' => 'FileLog',
    'file' => WEBPATH . '/logs/app.log',
);
$log['test'] = array(
    'type' => 'FileLog',
    'file' => WEBPATH . '/logs/test.log',
);
return $log;

yuforlong avatar Apr 12 '17 12:04 yuforlong