VisualAppeal / DatabaseLogger by thelfensdrfer

Laravel package to log messages into the database instead of a file.
Package Data
Maintainer Username: thelfensdrfer
Maintainer Contact: (Tim Helfensdörfer)
Package Create Date: 2017-02-12
Package Last Update: 2020-04-03
Language: PHP
License: MIT
Last Refreshed: 2020-06-23 03:22:22
Package Statistics
Total Downloads: 309
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 2
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Laravel DatabaseLogger

Laravel package to log messages into a database.


Via Composer

$ composer require visualappeal/databaselogger


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:
    '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.


If you discover any security related issues, please email instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.