日誌
日誌類用法也與數據庫用法類似
use support\Log;
Log::channel('plugin.admin.default')->info('test');
如果想復用主項目的日誌配置,直接使用
use support\Log;
Log::info('日誌內容');
// 假設主項目有個test日誌配置
Log::channel('test')->info('日誌內容');
日誌類用法也與數據庫用法類似
use support\Log;
Log::channel('plugin.admin.default')->info('test');
如果想復用主項目的日誌配置,直接使用
use support\Log;
Log::info('日誌內容');
// 假設主項目有個test日誌配置
Log::channel('test')->info('日誌內容');