original_string: protected function log(string $sql, array $context = []): void
      {
          $sql = str_replace('%', '%%', $sql);
          $sql = preg_replace('/\?/', '"%s"', $sql, \count($context));
  
          // replace mask by data
          $log = vsprintf($sql, $context);
  
          Logger::info($log);
      }
code: protected function log(string $sql, array $context = []): void
      {
          $sql = str_replace('%', '%%', $sql);
          $sql = preg_replace('/\?/', '"%s"', $sql, \count($context));
  
          // replace mask by data
          $log = vsprintf($sql, $context);
  
          Logger::info($log);
      }
code_tokens: protected function log ( string $ sql , array $ context = [ ] ) : void { $ sql = str_replace ( '%' , '%%' , $ sql ) ; $ sql = preg_replace ( '/\?/' , '"%s"' , $ sql , \ count ( $ context ) ) ; // replace mask by data $ log = vsprintf ( $ sql , $ context ) ; Logger :: info ( $ log ) ; }
docstring: Log queries by Application
  
  @param  string $sql SQL query for logs
  @param  array  $context
  
  @return void
docstring_tokens: Log queries by Application