gboquizosanchez/google-chat-channel

Laravel package to send logs to Google Chat

1.1.0 2025-09-05 00:29 UTC

This package is auto-updated.

Last update: 2025-09-05 01:06:46 UTC


README

Latest Version Software License Total Downloads

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 to error.
  • GOOGLE_CHAT_IGNORE_CONTEXTS - Whether to ignore context when sending logs to Google Chat. Defaults to true.
  • GOOGLE_CHAT_IGNORE_EXCEPTIONS - Whether to ignore exceptions when sending logs to Google Chat. Defaults to true.
  • GOOGLE_CHAT_QUEUED - Whether to queue logs to send to Google Chat. Defaults to false.

Problems? 🚨

Let me know about yours by opening an issue!

Credits 🧑‍💻

License 📄

MIT License (MIT). See License File.