gboquizosanchez / google-chat-channel
Laravel package to send logs to Google Chat
1.1.0
2025-09-05 00:29 UTC
Requires
- php: ^8.3|^8.4
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^11.0|^12.0
- monolog/monolog: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- larastan/larastan: ^2.9
- orchestra/testbench: ^9.1
- pestphp/pest: ^3.5
README
A powerful and lightweight Laravel logging channel that sends logs directly to Google Chat spaces via webhooks. Perfect for monitoring your application's health and receiving instant notifications about errors, exceptions, and important events.
✨ Features
- 🚀 Real-time log sending to Google Chat
- 📱 Rich formatting with cards and emojis based on log level
- ⚙️ Flexible configuration via environment variables
- 🔧 Support for context and exception details
- 🎯 Compatible with Laravel 11, and 12
- 📊 Smart error handling and retries
📦 Installation
Install the package using Composer:
composer require gboquizosanchez/google-chat-channel
Environment Variables
You can configure the channel by setting the following environment variables:
GOOGLE_CHAT_WEBHOOK_URL
- The URL of the Google Chat webhook to send logs to.GOOGLE_CHAT_LOG_LEVEL
- The minimum log level to send to Google Chat. Defaults toerror
.GOOGLE_CHAT_IGNORE_CONTEXTS
- Whether to ignore context when sending logs to Google Chat. Defaults totrue
.GOOGLE_CHAT_IGNORE_EXCEPTIONS
- Whether to ignore exceptions when sending logs to Google Chat. Defaults totrue
.GOOGLE_CHAT_QUEUED
- Whether to queue logs to send to Google Chat. Defaults tofalse
.
Problems? 🚨
Let me know about yours by opening an issue!
Credits 🧑💻
License 📄
MIT License (MIT). See License File.