Add LogDriver for translation with configuration support.
Introduced a new LogDriver for logging translation operations. Updated the README and configuration file to include support for the LogDriver and its associated limits. This feature enables the use of a logging-based translation driver for testing and debugging purposes.
This commit is contained in:
@@ -35,5 +35,16 @@ return [
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'log' => [
|
||||
'driver' => '\KorElf\TranslateLaravel\Translate\LogDriver',
|
||||
'config' => [
|
||||
'limit' => [
|
||||
'max_request' => (int) env('TRANSLATE_LOG_LIMIT_MAX_REQUEST', 20),
|
||||
'rate_seconds' => (int) env('TRANSLATE_LOG_LIMIT_RATE_SECONDS', 1),
|
||||
'max_symbols' => (int) env('TRANSLATE_LOG_LIMIT_MAX_SYMBOLS', 9000),
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user