Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b7994cb

Browse files
committed
add env option for defining application_name
1 parent 3d20df4 commit b7994cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KibanaFormatterServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function boot()
1818
{
1919
$logPath = storage_path().'/logs/log_'. date('Y-m-d-H') .'.json';
2020
$handler = new StreamHandler($logPath);
21-
$handler->setFormatter(new KibanaFormatter('php-api'));
21+
$handler->setFormatter(new KibanaFormatter(env('KIBANA_FORMATTER_APPLICATION_NAME','php-api')));
2222

2323
$monolog = Log::getMonolog();
2424
$monolog->pushHandler($handler);

0 commit comments

Comments
 (0)