Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 9c30de9

Browse files
author
rok
committed
documentation updated
1 parent c446e6e commit 9c30de9

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
composer require rokde/laravel-slow-query-logger
99
```
1010

11-
Add to `providers` in `config/app.php`:
11+
In old Laravel you need to add to `providers` in `config/app.php`:
1212

1313
```
1414
Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider::class,
@@ -19,11 +19,9 @@ Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider::class,
1919
Add to your composer.json following lines
2020

2121
"require": {
22-
"rokde/laravel-slow-query-logger": "~0.0"
22+
"rokde/laravel-slow-query-logger": "^1.*"
2323
}
2424

25-
Add `Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider::class,` to `providers` in `config/app.php`.
26-
2725
Run `php artisan vendor:publish --provider="Rokde\LaravelSlowQueryLogger\LaravelSlowQueryLoggerProvider"`
2826

2927
## Configuration
@@ -32,14 +30,20 @@ Run `php artisan vendor:publish --provider="Rokde\LaravelSlowQueryLogger\Laravel
3230

3331
Only log queries longer than this value in microseconds.
3432

35-
### `environments`
33+
You can set this value through environment variable `LARAVEL_SLOW_QUERY_LOGGER_TIME_TO_LOG`.
34+
35+
### `enabled`
3636

37-
Set the enabled environments to log slow queries.
37+
Enable the slow queries logger.
38+
39+
You can set this value through environment variable `LARAVEL_SLOW_QUERY_LOGGER_ENABLED`.
3840

3941
### `log-level`
4042

4143
Set the log-level for logging the slow queries.
4244

45+
You can set this value through environment variable `LARAVEL_SLOW_QUERY_LOGGER_LOG_LEVEL`.
46+
4347
## Usage
4448

4549
Nothing to do after adding to `/config/app.php`. Watch your logs.

0 commit comments

Comments
 (0)