by shigemk2

当面は技術的なことしか書かない

fwrite

LoggerAppenderConsoleなんかで使われてる

 public function append(LoggerLoggingEvent $event) {
        if (is_resource($this->fp) && $this->layout !== null) {
            fwrite($this->fp, $this->layout->format($event));
        }
    }

https://www.php.net/manual/ja/function.fwrite.php