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

Commit 3b1f9cc

Browse files
author
rok
committed
adding a new config value for the logging channel
1 parent 9c30de9 commit 3b1f9cc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: config/slow-query-logger.php

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22

33
return [
44
/**
5-
* log all sql queries that are slower than X seconds
6-
* laravel measures at a precision of 2 digits, so 0.7134 will be logged as 0.71
5+
* log when you are on these environments
76
*/
8-
'time-to-log' => env('LARAVEL_SLOW_QUERY_LOGGER_TIME_TO_LOG', 0.7),
7+
'enabled' => env('LARAVEL_SLOW_QUERY_LOGGER_ENABLED', false),
98

109
/**
1110
* log when you are on these environments
1211
*/
13-
'enabled' => env('LARAVEL_SLOW_QUERY_LOGGER_ENABLED', false),
12+
'channel' => env('LARAVEL_SLOW_QUERY_LOGGER_CHANNEL', 'single'),
1413

1514
/**
1615
* level to log
1716
*/
1817
'log-level' => env('LARAVEL_SLOW_QUERY_LOGGER_LOG_LEVEL', 'debug'),
18+
19+
/**
20+
* log all sql queries that are slower than X seconds
21+
* laravel measures at a precision of 2 digits, so 0.7134 will be logged as 0.71
22+
*/
23+
'time-to-log' => env('LARAVEL_SLOW_QUERY_LOGGER_TIME_TO_LOG', 0.7),
1924
];

0 commit comments

Comments
 (0)