think\Log::record PHP 메소드

record() 공개 정적인 메소드

记录调试信息
public static record ( mixed $msg, string $type = 'log' ) : void
$msg mixed 调试信息
$type string 信息类型
리턴 void
    public static function record($msg, $type = 'log')
    {
        self::$log[$type][] = $msg;
    }

Usage Example

예제 #1
0
파일: fileTest.php 프로젝트: Lofanmi/think
 public function testRecord()
 {
     $record_msg = 'record';
     Log::record($record_msg, 'notice');
     $logs = Log::getLog();
     $this->assertNotFalse(array_search(['type' => 'notice', 'msg' => $record_msg], $logs));
 }
All Usage Examples Of think\Log::record