1.seasLog在windows下的安裝php
extension=php_seaslog.dll seaslog.default_basepath="這裏是你準備存放日誌的路徑" seaslog.default_logger=default seaslog.disting_type=1 seaslog.disting_by_hour=1 seaslog.use_buffer=1 seaslog.buffer_size=100 seaslog.level=0 seaslog.trace_error=1 seaslog.trace_exception=0
最後,重啓服務器。git
如今咱們打開phpinfo,若是有以下顯示:github
說明你配置成功嘍windows
2.seasLog經常使用方法服務器
配置方法:setBasePath,getBasePath,setLogger,getLastLoggerspa
寫日誌方法:log,info,notice,debug,warning,error.net
讀日誌方法:analyzerCount,analyzerDetaildebug
具體使用詳見這裏:https://github.com/Neeke/SeasLog日誌