abhishekkrhaith11 / dblog
This package is abandoned and no longer maintained.
No replacement package was suggested.
:description
v1.0.4
2018-06-28 09:20 UTC
Requires
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.2
This package is not auto-updated.
Last update: 2021-09-18 13:01:48 UTC
README
This package will help to keep log in database with type for Laravel applications.
Installation
Via Composer
$ composer require abhishekkrhaith11/dblog
Usage
After installation you need to add the following line to config/app.php -
'providers' => [
/*
* Package Service Providers...
*/
Abhishekkrhaith11\Dblog\DblogServiceProvider::class,
]
If you want to use alias add the following -
'aliases' => [
/*
* Package Facades...
*/
'Dblog' => Abhishekkrhaith11\Dblog\Facades\Dblog::class,
]
After setup you need migrate the database using
$ php artisan migrate
You can change the database table name before migration. For that you have to publish configs. use -
$ php artisan vendor:publish --provider=Abhishekkrhaith11\Dblog\DblogServiceProvider
Documentation
Available log methods -
Dblog::emergency(string $msg);
Dblog::alert(string $msg);
Dblog::critical(string $msg);
Dblog::error(string $msg);
Dblog::warning(string $msg);
Dblog::notice(string $msg);
Dblog::info(string $msg);
Dblog::debug(string $msg);
To retrive logs use -
Dblog::logs(string $type);
This will return a array of all logs found in log table. Each log will contain log type, message and log time.
Support
If you found any issues you can report in github issues.
License
MIT. Please see the license file for more information.