Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 467 Bytes

logri-zhi-lei.md

File metadata and controls

25 lines (15 loc) · 467 Bytes

Log

默认路径存放于runtime/logs/service

    Log::debug('123',['user'=>1]);
    Log::info('123',['user'=>1]);
    Log::notice('123',['user'=>1]);
    Log::warning('123',['user'=>1]);
    Log::error('123',['user'=>1]);
    Log::critical('123',['user'=>1]);
    Log::alert('123',['user'=>1]);
    Log::emergency('123',['user'=>1]);

    //默认model是web.app,也可以自定义
    Log::emergency('123',['user'=>1],'web.admin');