如何修改才能對stdout.log文件進行分割?
在config/server.php中設(shè)置的,代碼如下:
return [
'event_loop' => '',
'stop_timeout' => 2,
'pid_file' => runtime_path() . '/webman.pid',
'status_file' => runtime_path() . '/webman.status',
'stdout_file' => runtime_path() . '/logs/stdout.log',
'log_file' => runtime_path() . '/logs/workerman.log',
'size' => 10 * 1024 * 1024
];