visualappeal/databaselogger
Laravel package to log messages into the database instead of a file.
813
2
| Install | |
|---|---|
composer require visualappeal/databaselogger |
|
| Latest Version: | 2.1.1 |
| PHP: | >= 7.2 |
| Laravel: | 5 · 6 · 7 |
| License: | MIT |
| Last Updated: | Apr 3, 2020 |
| Links: | GitHub · Packagist |
Maintainer: thelfensdrfer
Laravel DatabaseLogger
Laravel package to log messages into a database.
Install
Via Composer
$ composer require visualappeal/databaselogger
Usage
Add the following lines in your config/logging.php:
'db' => [
'driver' => 'custom',
'via' => VisualAppeal\DatabaseLogger\DatabaseLogger::class,
'level' => env('LOG_LEVEL', 'debug'), // Optional
'connection' => env('LOG_DATABASE', 'mysql'), // Optional
'table' => env('LOG_TABLE', 'logs'), // Optional
// Encryption requires sodium: https://secure.php.net/manual/en/book.sodium.php
'encrypt' => env('LOG_ENCRYPT', false), // Optional, encrypt the context part of the log message before inserting it into the database
'encrypt_key' => env('LOG_ENCRYPT_KEY', env('APP_KEY', '')), // Optional, only used if encrypt is true
],
Database migrations are automatically registered, you only have to call php artisan migrate after installing the package.
Security
If you discover any security related issues, please email tim@visualappeal.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
aporat/laravel-cloudwatch-logger
A Laravel logging driver for AWS CloudWatch Logs integration
11,676
4
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.1.1 | >= 7.2 | >= 5.7 | MIT | |
| 2.1.0 | >= 7.2 | >= 5.7 | MIT | |
| 2.0.4 | >= 7.2 | >= 5.7 | MIT | |
| 2.0.3 | >= 7.2 | >= 5.7 | MIT | |
| 2.0.2 | >= 7.2 | >= 5.7 | MIT | |
| 2.0.1 | >= 7.2 | >= 5.7 | MIT | |
| 2.0.0 | >= 7.2 | >= 5.7 | MIT | |
| 1.4.0 | >=7.0 | 5.7.* | MIT | |
| 1.3.0 | >=7.0 | 5.6.* | MIT | |
| 1.2.2 | >=7.0 | 5.6.* | MIT | |
| 1.2.1 | >=7.0 | 5.6.* | MIT | |
| 1.2.0 | >=5.6 | 5.6.* | MIT | |
| 1.1.5 | >=5.6 | 5.* | MIT | |
| 1.1.4 | >=5.6 | 5.* | MIT | |
| 1.1.3 | >=5.6 | 5.* | MIT | |
| 1.1.2 | >=5.6 | 5.* | MIT | |
| 1.1.1 | 5.6.*| | ~5.1 | MIT | |
| 1.1.0 | 5.6.*| | ~5.1 | MIT | |
| 1.0.0 | 5.6.*| | ~5.1 | MIT |