Download the PHP package deferdie/laravel-stackdriver without Composer
On this page you can find all versions of the php package deferdie/laravel-stackdriver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download deferdie/laravel-stackdriver
More information about deferdie/laravel-stackdriver
Files in deferdie/laravel-stackdriver
Download deferdie/laravel-stackdriver
More information about deferdie/laravel-stackdriver
Files in deferdie/laravel-stackdriver
Vendor deferdie
Package laravel-stackdriver
Short Description An exception logger for Laravel to log to Google Stackdriver
License MIT
Package laravel-stackdriver
Short Description An exception logger for Laravel to log to Google Stackdriver
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-stackdriver
Laravel Stackdriver
Installation:
composer require deferdie/laravel-stackdriver
Add the following enviroment variables to your .env file
GCP_PROJECT_ID=YOUR GOOGLE CLOUD PROJECT ID
GCP_LOG_NAME=YOUR LOG NAME <YOUR LARAVEL PROJECT NAME>
GOOGLE_APPLICATION_CREDENTIALS=PATH TO YOUR CREDIENTIAL.JSON FILE
To optain a JSON file containing your credientials, you first need to create a google service account and get a key file from the IAM section.
In your config/app.php within your providers array
StackDriverLogger\LaravelStackDriverServiceProvider::class,
In your app/Exceptions/Handler.php
use StackDriverLogger\StackDriverLogger;
and finally within the report function
$log = new StackDriverLogger();
$log->log($exception);
All versions of laravel-stackdriver with dependencies
PHP Build Version
Package Version
Requires
google/cloud-logging Version
^1.11
The package deferdie/laravel-stackdriver contains the following files
Loading the files please wait ....