Skip to content

Commit 35b1d6b

Browse files
author
Tim Helfensdörfer
committed
Small refactoring
1 parent 8de58ab commit 35b1d6b

File tree

8 files changed

+501
-46
lines changed

8 files changed

+501
-46
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,23 @@ Add the following lines in your `config/logging.php`:
2121
'level' => env('LOG_LEVEL', 'debug'), // Optional
2222
'connection' => env('LOG_DATABASE', 'mysql'), // Optional
2323
'table' => env('LOG_TABLE', 'logs'), // Optional
24-
'encrypt' => env('LOG_ENCRYPT', false), // Optional, Encrypt the context part of the log message before inserting it into the database
24+
25+
// Encryption requires sodium: https://secure.php.net/manual/en/book.sodium.php
26+
'encrypt' => env('LOG_ENCRYPT', false), // Optional, encrypt the context part of the log message before inserting it into the database
27+
'encrypt_key' => env('LOG_ENCRYPT_KEY', env('APP_KEY', '')), // Optional, only used if encrypt is true
2528
],
2629
```
2730

31+
Database migrations are automatically registered, you only have to call `php artisan migrate` after installing the package.
32+
2833
## Change log
2934

35+
### 2.0.0
36+
37+
* CHANGE: Auto discover package
38+
* CHANGE: Changed name of the service provider
39+
* CHANGE: PHP >= 7.2 required
40+
3041
### 1.3.0
3142

3243
* CHANGE: Throw exception on insert error

composer.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
11
{
22
"name": "visualappeal/databaselogger",
33
"type": "library",
4-
"description": "Laravel package to log messages into the database instead of a file.",
4+
"description": "Laravel package to log messages into a database.",
55
"keywords": [
6-
"VisualAppeal",
6+
"laravel",
77
"database",
88
"logger",
99
"logging",
10-
"laravel"
10+
"monolog"
1111
],
1212
"homepage": "https://github.com/VisualAppeal/DatabaseLogger",
1313
"license": "MIT",
1414
"authors": [
1515
{
16-
"name": "VisualAppeal",
16+
"name": "Tim Helfensdörfer",
1717
"email": "tim@visualappeal.de"
1818
}
1919
],
2020
"require": {
21-
"php" : ">=7.0",
22-
"illuminate/support": "5.7.*"
21+
"php": ">= 7.2",
22+
"ext-sodium": "*",
23+
"illuminate/database": ">= 5.7.*",
24+
"illuminate/support": ">= 5.7.*",
25+
"monolog/monolog": ">= 1.*"
2326
},
2427
"autoload": {
2528
"psr-4": {
2629
"VisualAppeal\\DatabaseLogger\\": "src"
2730
}
2831
},
32+
"extra": {
33+
"laravel": {
34+
"providers": [
35+
"VisualAppeal\\DatabaseLogger\\ServiceProvider"
36+
]
37+
}
38+
},
2939
"config": {
3040
"sort-packages": true
3141
}

0 commit comments

Comments
 (0)