Download the PHP package officegest/api-logger without Composer
On this page you can find all versions of the php package officegest/api-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download officegest/api-logger
More information about officegest/api-logger
Files in officegest/api-logger
Download officegest/api-logger
More information about officegest/api-logger
Files in officegest/api-logger
Vendor officegest
Package api-logger
Short Description Monitoring and log your APIs
License MIT
Homepage https://officegest.com/
Package api-logger
Short Description Monitoring and log your APIs
License MIT
Homepage https://officegest.com/
Please rate this library. Is it a good library?
Informations about the package api-logger
Officegest Api Logger
This is a laravel package to save logs from api.
Installation
composer require officegest/api-logger
Publish the config file for this package. This will add the file config/officegest-api-logger-config.php
, where you
can configure this package.
$ php artisan vendor:publish --tag=officegest-api-logger-config
You need add this variables to your .env
API_LOGGER_ELASTIC_HOST=true
API_LOGGER_ELASTIC_LOGS_INDEX="your_officegest_url"
Usage
Add middleware alias to $middlewareAliases
//app/Http/Kernel.php (l10)
'logger' => \OfficegestApiLogger\Middlewares\OfficegestApiLoggerMiddleware::class,
Add middleware at routes you want log to elasticsearch
/*
|--------------------------------------------------------------------------
| Example add middleware to group of endpoints
|--------------------------------------------------------------------------
*/
Route::middleware('logger')->controller(YourController::class)
->name('yourname.')
->prefix('yourprefix')
->group(function () {
...
});
Security
If you discover any security related issues, please email [email protected] or use issues of this repo.
Credits
- Officegest.com
- Guisoft.net
- All Contributors
All versions of api-logger with dependencies
PHP Build Version
Package Version
The package officegest/api-logger contains the following files
Loading the files please wait ....