Download the PHP package lhduc/laravel-gcp-logging without Composer
On this page you can find all versions of the php package lhduc/laravel-gcp-logging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lhduc/laravel-gcp-logging
More information about lhduc/laravel-gcp-logging
Files in lhduc/laravel-gcp-logging
Package laravel-gcp-logging
Short Description Reusable Google Cloud Logging integration for Laravel applications.
License MIT
Informations about the package laravel-gcp-logging
Laravel GCP Logging
Reusable package that wires a Google Cloud Logging channel into Laravel, adds correlation IDs, and captures HTTP client, queue, and request telemetry.
Installation
Publish configuration
Configure config/google-logging.php or the matching environment variables (GOOGLE_PROJECT_ID, GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_APPLICATION_NAME).
Enable channel
Update config/logging.php:
excluded_routes entries match the route URI exactly and also accept * wildcards (e.g. api/health*).
Requests hitting the api middleware group automatically receive the correlation middleware. Queue jobs and outbound HTTP client calls will include the correlation identifier and emit structured entries in Google Cloud Logging.
Redaction
Sensitive values are replaced with [REDACTED] before an entry leaves the app: request/response headers and bodies, HTTP client calls, queue payloads, log context and URLs. The default redact_keys (see config/google-logging.php) cover authorization, cookie, password, token, otp, pin, secret, signature, api_key, private_key, credential, card_number, cvv, cvc.
- A key matches by word:
passwordalso masksuser_password,newPassword,passwords;pindoes not maskshipping. - JSON text, PHP-serialized text and
?token=...query strings inside string values are masked too (e.g. truncated bodies and queue payloads). - Add your own keys in
redact_keys; set it to[]to disable redaction.
All versions of laravel-gcp-logging with dependencies
ext-json Version *
ext-mbstring Version *
google/cloud-logging Version ^1.32
guzzlehttp/guzzle Version ^7.0
laravel/framework Version ^12.0|^13.0
monolog/monolog Version ^3.0