1、配置
vim /etc/php.d/seaslog.ini
; Enable mysql extension module
;extension=seaslog.so
[SeasLog]
;configuration for php SeasLog module
extension = seaslog.so
;默认log根目录
seaslog.default_basepath = "/var/log/www"
;默认logger目录
seaslog.default_logger = "default"
;日期格式配置 默认"Y-m-d H:i:s"
seaslog.default_datetime_format = "Y-m-d H:i:s"
;日志格式模板 默认"%T | %L | %P | %Q | %t | %M"
;seaslog.default_template = "%T | %L | %P | %Q | %t | %M"
seaslog.default_template = "%T | %t | %M"
;是否以目录区分Logger 1是(默认) 0否
seaslog.disting_folder = 0
;是否以type分文件 1是 0否(默认)
seaslog.disting_type = 0
;是否每小时划分一个文件 1是 0否(默认)
seaslog.disting_by_hour = 1
;是否启用buffer 1是 0否(默认)
seaslog.use_buffer = 1
;buffer中缓冲数量 默认0(不使用buffer_size)
seaslog.buffer_size = 100
;记录日志级别,数字越大,根据级别记的日志越多。
;0-EMERGENCY 1-ALERT 2-CRITICAL 3-ERROR 4-WARNING 5-NOTICE 6-I