StreamHandler.php Classes StreamHandlerAppends formatted Throwables (one per line) to a file path or php:// stream wrapper. The stream is opened lazily on the first handle() call and reused across subsequent calls; __destruct() closes it.