Download the PHP package dejwcake/advanced-logger without Composer
On this page you can find all versions of the php package dejwcake/advanced-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dejwcake/advanced-logger
More information about dejwcake/advanced-logger
Files in dejwcake/advanced-logger
Package advanced-logger
Short Description Advanced logger
License MIT
Informations about the package advanced-logger
Advanced Logger
Advanced logger is a laravel package used to automatically log every request made to you laravel application. Each request is also identified by hash, which can be used in standard log to identify the request.
This package has been inspired by package https://github.com/andersao/laravel-request-logger from Anderson Andrade.
Installation
Composer
Run composer require brackets/advanced-logger
in your terminal.
Laravel
This package is for Laravel 5.5, 5.6 and 5.7, so it has auto discovery.
To publish config file, run
Configuration
All options are described in config/advanced-logger.php
.
Using request hash in standard log file in Laravel 5.7
If you would like to have request identifier in you standard log, to match log events with request you could add to config/logging.php
to daily
channel. The resulted code should looks like
This log modifier can be used also in other channels, however it uses extended LineFormatter
.
Run tests
To run tests use this docker environment.
To switch between postgresql and mariadb change in docker-compose.yml
DB_CONNECTION environmental variable:
All versions of advanced-logger with dependencies
ext-json Version *
illuminate/http Version ^10.0 | ^11.0
illuminate/support Version ^10.0 | ^11.0
monolog/monolog Version ^3.0