PHP code example of odem / laravel-stackdriver-gcl
1. Go to this page and download the library: Download odem/laravel-stackdriver-gcl library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
odem / laravel-stackdriver-gcl example snippets
'stackdriver' => [
'driver' => 'custom',
'via' => \LaravelStackdriverGcl\StackdriverGoogle::class,
'logName' => env('GCP_LOG_NAME'),
'labels' => [
'application' => env('APP_NAME'),
'environment' => env('APP_ENV'),
],
'level' => 'debug',
'projectId' => env('GCP_PROJECT_ID'),
'credentials' => env('GCP_CREDENTIALS')
]
LOG_CHANNEL=stackdriver