behnamhosseini / LogToJson by behnamhoseyni

conver laravel logs format to json
22
2
1
Package Data
Maintainer Username: behnamhoseyni
Maintainer Contact: behnamtakta71@gmail.com (behnamhosseini)
Package Create Date: 2021-07-27
Package Last Update: 2022-05-22
Language: PHP
License: Unknown
Last Refreshed: 2024-04-26 03:06:05
Package Statistics
Total Downloads: 22
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Laravel log to json

Author

Description

Convert Laravel logs to json

⬇️ Installation

You can install the package via composer:

composer require behnamhosseini/log-to-json

You may also publish config file:

php artisan vendor:publish --provider=Behnamhosseini\LogToJson\Providers\LogServiceProvider

Usage

All you have to do is change a line of code in (app\Exceptions\Handler.php) and then you can implement the settings from the configuration file you published (config / logToJson).

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

to

use Behnamhosseini\LogToJson\Handler as ExceptionHandler;