code: public function getLine(int $level, string $msg, $data = null)
      {
          if (is_callable($this->lineFormat)) {
              $line = $this->lineFormat;
              return $line($level, $msg, $data);
          }
  
          return $this->formatLine($level, $msg);
      }
docs: @param int    $level
  @param string $msg
  @param null   $data
  
  @return string