Coder Social home page Coder Social logo

theriddleofenigma / laravel-google-chat-log Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 5.0 42 KB

Brings up the option for sending the logs to google chat [Google Workplace formerly called GSuite].

Home Page: https://theriddleofenigma.github.io/laravel-google-chat-log/

License: MIT License

PHP 100.00%
laravel lumen gsuite google-chat laravel-logs logs error-logging

laravel-google-chat-log's Introduction

Hi there ๐Ÿ‘‹

I'm a passionate FullStack developer from India ๐Ÿ‡ฎ๐Ÿ‡ณ

About me

  • ๐Ÿ’ผ Lead Software Developer at Heptagon, now merged to ConneqtCorp
  • โค๏ธ I love writing PHP (mostly TALL stack), and building fun experiments on weekends
  • ๐Ÿ”ญ Iโ€™m currently working on my personal website, kumaravel.dev, (in-progress).
  • ๐ŸŒฑ Iโ€™m currently learning ThreeJS and teaching laravel livewire in tamil
  • ๐Ÿ’ฌ Ask me about anything here
  • ๐Ÿ“ซ How to reach me: [email protected]
  • โšก Fun fact: Love to code!

Languages and Tools:

Kumaravel's github stats

Top Repositories



Kumaravel | Twitter

laravel-google-chat-log's People

Contributors

theriddleofenigma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-google-chat-log's Issues

FatalError while log

Error Description

I have installed the package using composer and then added config in logging and the URL in env. php and then while any error throws then the error must be logged in the chat but here I found an exception like the one below.

Declaration of Enigma\GoogleChatHandler::write($record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(Monolog\LogRecord $record): void

Note: This is happened in the lumen.

Symfony\Component\ErrorHandler\Error
FatalError
Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#111 โ–ผ
-error: array:4 [โ–ผ
"type" => 64
"message" => "Declaration of Enigma\GoogleChatHandler::write($record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(Monolog\LogRecord $record): voi โ–ถ"
"file" => "/var/www/vendor/theriddleofenigma/laravel-google-chat-log/src/GoogleChatHandler.php"
"line" => 19
]
}

Can a space be notified instead of a person?

Hello,

is it possible to notify a space instead of a human? For example - we have a few Dev spaces our IT/Dev team uses for automated server stuff.

The ID (when inspecting our space icons) looks like data-group-id="space/XXXXXXXX"

Thanks in advance!

Missing ServiceProvider?

I had to create a ServiceProvider

<?php

namespace App\Providers;

use Enigma\GoogleChatHandler;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;

class GoogleChatServiceProvider extends ServiceProvider
{

	/**
	 * Register Papertrail Service Provider
	 *
	 * @return void
	 */
	public function register()
	{
		$monolog = Log::getLogger();
		$gch = new GoogleChatHandler();
		$gch->setLevel(config('logging.channels.google-chat.level'));
		$monolog->pushHandler($gch);
	}
} 

And add it to config\app.php to get it to work (adding App\Providers\GoogleChatServiceProvider::class, in the 'providers' section).

Did I miss something in your setup description from the Readme? Perhaps you could add this to your setup description?
I'm using Laravel 9.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.