PHPackages                             senthilhep/hep-laravel-google-chat-log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. senthilhep/hep-laravel-google-chat-log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

senthilhep/hep-laravel-google-chat-log
======================================

Brings up the option for sending the logs to google chat \[GSuite\].

04.5k↑323.1%PHP

Since Nov 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/senthilhep/hep-laravel-google-chat-log)[ Packagist](https://packagist.org/packages/senthilhep/hep-laravel-google-chat-log)[ RSS](/packages/senthilhep-hep-laravel-google-chat-log/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

`♥ Made with  And I love `

Laravel/Lumen Google Chat Log
=============================

[](#laravellumen-google-chat-log)

Brings up the option for sending the logs to google chat \[GSuite\] from [Laravel](https://laravel.com)/[Lumen](https://lumen.laravel.com).

Installation
------------

[](#installation)

### Composer install

[](#composer-install)

```
composer require senthilhep/hep-laravel-google-chat-log
```

Add the following code to the channels array in `config/logging.php` in your laravel/lumen application.

```
'google-chat' => [
    'driver' => 'monolog',
    'url' => env('LOG_GOOGLE_CHAT_WEBHOOK_URL'),
    'notify_users' => [
        'default' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_DEFAULT'),
        'emergency' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_EMERGENCY'),
        'alert' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_ALERT'),
        'critical' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_CRITICAL'),
        'error' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_ERROR'),
        'warning' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_WARNING'),
        'notice' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_NOTICE'),
        'info' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_INFO'),
        'debug' => env('LOG_GOOGLE_CHAT_NOTIFY_USER_ID_DEBUG'),
    ],
    'level' => 'warning',
    'timezone' => env('LOG_GOOGLE_CHAT_TIMEZONE' , 'Asia/Kolkata'),
    'handler' => \Enigma\GoogleChatHandler::class,
],

```

You can provide the eight logging levels defined in the [RFC 5424 specification](https://tools.ietf.org/html/rfc5424): `emergency`, `alert`, `critical`, `error`, `warning`, `notice`, `info`, and `debug`

**Note\*:** Make sure to set the **LOG\_GOOGLE\_CHAT\_WEBHOOK\_URL** env variable. And **LOG\_GOOGLE\_CHAT\_NOTIFY\_USER\_ID** is optional. Here, you can set multiple google chat webhook url as comma separated value for the **LOG\_GOOGLE\_CHAT\_WEBHOOK\_URL** env variable.

Now, you can notify a specific user with `@mention` in the error log by setting the corresponding USER\_ID to the `LOG_GOOGLE_CHAT_NOTIFY_USER_ID_DEFAULT` env variable. User Ids mapped under `LOG_GOOGLE_CHAT_NOTIFY_USER_ID_DEFAULT` will be notified for all log levels.

For getting the **USER\_ID**, right-click the user-icon of the person whom you want to notify in the Google chat from your browser window and select inspect. Under the `div` element find the attribute data\_member\_id, then the USER\_ID can be found as `data-member-id="user/human/{USER_ID}>"`.

In order to notify all the users like `@all`, Set `LOG_GOOGLE_CHAT_NOTIFY_USER_ID_DEFAULT=all`. Also, you can set multiple USER\_IDs as comma separated value. In order to notify different users for different log levels, you can set the corresponding env keys mentioned to configure in the `logging.php` file.

License
-------

[](#license)

Copyright © Senthil Prabu

Laravel Google Chat Log is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/73afe8a2d8700a64cb64ee7ad7d7e2fda627e0aab4d393074121e555c9639a61?d=identicon)[senthilhep](/maintainers/senthilhep)

---

Top Contributors

[![senthilhep](https://avatars.githubusercontent.com/u/61191330?v=4)](https://github.com/senthilhep "senthilhep (7 commits)")

### Embed Badge

![Health badge](/badges/senthilhep-hep-laravel-google-chat-log/health.svg)

```
[![Health](https://phpackages.com/badges/senthilhep-hep-laravel-google-chat-log/health.svg)](https://phpackages.com/packages/senthilhep-hep-laravel-google-chat-log)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M277](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
