# log.php 日志的配置文件 现提供2种类型的日志收集策略。 * file 传统的系统文件日志 * graylog 通过graylog进行日志收集 efficiency_monitor_enable字段启动后会进行效率监控便于graylog收集分析找到效率低下的方法进行优化,file类型请不要开启,会产生大量的日志。 ```php //node的名字,每一个都必须不一样 $config['log']['active'] = 'file'; $config['log']['log_level'] = \Monolog\Logger::DEBUG; $config['log']['log_name'] = 'SD'; $config['log']['graylog']['udp_send_port'] = 12500; $config['log']['graylog']['ip'] = '127.0.0.1'; $config['log']['graylog']['port'] = '12201'; $config['log']['graylog']['api_port'] = '9000'; $config['log']['graylog']['efficiency_monitor_enable'] = true; $config['log']['file']['log_path'] = '/../../'; $config['log']['file']['log_max_files'] = 15; $config['log']['file']['efficiency_monitor_enable'] = false; return $config; ```