}
restore_error_handler();
if (!is_resource($stream)) {
$this->stream = null;
throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $url) . Utils::getRecordMessageForException($record));
}
stream_set_chunk_size($stream, $this->streamChunkSize);
$this->stream = $stream;
}
if ($this->nextRotation <= $record->datetime) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
$record = $this->processRecord($record);
}
$record->formatted = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
}
// once the record is initialized, send it to all handlers as long as the bubbling chain is not interrupted
try {
$handled = true;
if (true === $handler->handle($record)) {
break;
}
} catch (Throwable $e) {
$this->handleException($e, $record);
* @param string|Stringable $message The log message
* @param mixed[] $context The log context
*/
public function error(string|\Stringable $message, array $context = []): void
{
$this->addRecord(Level::Error, (string) $message, $context);
}
/**
* Adds a log record at the CRITICAL level.
*
* @param array $context
* @return void
*/
protected function writeLog($level, $message, $context): void
{
$this->logger->{$level}(
$message = $this->formatMessage($message),
$context = array_merge($this->context, $context)
);
$this->fireLogEvent($level, $message, $context);
* @param array $context
* @return void
*/
public function error($message, array $context = []): void
{
$this->writeLog(__FUNCTION__, $message, $context);
}
/**
* Log a warning message to the logs.
*
* @param array $context
* @return void
*/
public function error($message, array $context = []): void
{
$this->driver()->error($message, $context);
}
/**
* Exceptional occurrences that are not errors.
*
);
$context = $this->buildExceptionContext($e);
method_exists($logger, $level)
? $logger->{$level}($e->getMessage(), $context)
: $logger->log($level, $e->getMessage(), $context);
}
/**
* Determine if the exception should be reported.
* @param \Exception $exception
* @return void
*/
public function report(Throwable $exception)
{
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Throwable $e
* @return void
*/
protected function reportException(Throwable $e)
{
$this->app[ExceptionHandler::class]->report($e);
}
/**
* Render the exception to a response.
*
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
UnexpectedValueException
|
---|
UnexpectedValueException: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: The stream or file "/var/www/dev-telugu.latestly.com/storage/logs/laravel-2024-03-29.log" could not be opened in append mode: Failed to open stream: No space left on device The exception occurred while attempting to log: file_put_contents(/var/www/dev-telugu.latestly.com/storage/framework/sessions/HK7AGL0q4xNMzMew3iBgGbmWfjRNa1mpiVQjExuW): Failed to open stream: No space left on device Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} Context: {"exception":{}} at /var/www/dev-telugu.latestly.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:134 at Monolog\Handler\StreamHandler->write() (/var/www/dev-telugu.latestly.com/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:110) at Monolog\Handler\RotatingFileHandler->write() (/var/www/dev-telugu.latestly.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:44) at Monolog\Handler\AbstractProcessingHandler->handle() (/var/www/dev-telugu.latestly.com/vendor/monolog/monolog/src/Monolog/Logger.php:379) at Monolog\Logger->addRecord() (/var/www/dev-telugu.latestly.com/vendor/monolog/monolog/src/Monolog/Logger.php:632) at Monolog\Logger->error() (/var/www/dev-telugu.latestly.com/vendor/laravel/framework/src/Illuminate/Log/Logger.php:184) at Illuminate\Log\Logger->writeLog() (/var/www/dev-telugu.latestly.com/vendor/laravel/framework/src/Illuminate/Log/Logger.php:97) at Illuminate\Log\Logger->error() (/var/www/dev-telugu.latestly.com/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:667) at Illuminate\Log\LogManager->error() (/var/www/dev-telugu.latestly.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:274) at Illuminate\Foundation\Exceptions\Handler->report() (/var/www/dev-telugu.latestly.com/app/Exceptions/Handler.php:38) at App\Exceptions\Handler->report() (/var/www/dev-telugu.latestly.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:491) at Illuminate\Foundation\Http\Kernel->reportException() (/var/www/dev-telugu.latestly.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146) at Illuminate\Foundation\Http\Kernel->handle() (/var/www/dev-telugu.latestly.com/public/index.php:54) |