Download the PHP package gboquizosanchez/google-chat-channel without Composer
On this page you can find all versions of the php package gboquizosanchez/google-chat-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gboquizosanchez/google-chat-channel
More information about gboquizosanchez/google-chat-channel
Files in gboquizosanchez/google-chat-channel
Package google-chat-channel
Short Description Laravel package to send logs to Google Chat
License MIT
Homepage https://github.com/gboquizosanchez
Informations about the package google-chat-channel
Overview
A lightweight Laravel logging channel that sends log entries directly to a Google Chat space via webhooks. Messages are formatted as rich cards with emojis based on log level β so your team can triage errors at a glance without leaving Chat.
β¨ Features
- π Real-time delivery β Log entries sent instantly to your Google Chat space
- π± Rich formatting β Cards with emojis and severity based on log level
- βοΈ Env-based config β No config file to publish, just
.envvariables - π§ Context & exceptions β Optionally include extra context and exception details
- π Smart retries β Built-in error handling for webhook failures
- π Queue support β Optionally queue log dispatch to avoid blocking requests
π¦ Installation
βοΈ Configuration
Add the channel to your config/logging.php:
Then set your webhook URL in .env:
To get a webhook URL, open a Google Chat space β Manage webhooks β Add webhook.
Available environment variables
| Variable | Default | Description |
|---|---|---|
GOOGLE_CHAT_WEBHOOK_URL |
β | Required. Google Chat incoming webhook URL |
GOOGLE_CHAT_LOG_LEVEL |
error |
Minimum log level to forward (debug, info, warning, error, ...) |
GOOGLE_CHAT_IGNORE_CONTEXTS |
true |
Exclude context data from the message |
GOOGLE_CHAT_IGNORE_EXCEPTIONS |
true |
Exclude exception details from the message |
GOOGLE_CHAT_QUEUED |
false |
Queue log dispatch instead of sending synchronously |
π Usage
Once configured, use Laravel's standard logging β no changes needed in your code:
Each message arrives in Chat as a formatted card showing the level, message, and optionally context or exception details.
Contributing
Contributions are welcome!
- π Report bugs via GitHub Issues
- π‘ Suggest features or improvements
- π§ Submit pull requests with fixes or enhancements
Credits
- Author: GermΓ‘n Boquizo SΓ‘nchez
- Contributors: View all contributors
π License
This package is open-source software licensed under the MIT License.
All versions of google-chat-channel with dependencies
illuminate/support Version ^11.0|^12.0
monolog/monolog Version ^3.0
guzzlehttp/guzzle Version ^7.0