Skip to content

Laravel Rocket chat Debugher, push all logs to rocket chat channels

License

Notifications You must be signed in to change notification settings

novaday-co/laravel-rocket-chat-debugher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Rocket chat Debugher

First you need to set your channel url to config/debugher.php

        return [
            'end_point' => YOUR_ROCKET_CHAT_CHANNEL_URL_WITH_TOKEN,
            'channel_name' => YOUR_ROCKET_CHAT_CHANNEL_Name,
        ];

Then you need to import Logger to Exceptions/Handler.php

        use Novaday\Debugher\Logger;

Finally, put the following code to Exceptions/Handler.php where ever you need to push log

            resolve(Logger::class)
                ->fromUser(auth()->user())
                ->withIp(request()->ip())
                ->withException($exception)
                ->send();

About

Laravel Rocket chat Debugher, push all logs to rocket chat channels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages