@@ -26,9 +26,9 @@ |
||
| 26 | 26 | { |
| 27 | 27 | protected function resolveLogManager(): void |
| 28 | 28 | { |
| 29 | - $configPath = __DIR__ . '/config/fluent.php'; |
|
| 29 | + $configPath = __DIR__.'/config/fluent.php'; |
|
| 30 | 30 | $this->mergeConfigFrom($configPath, 'fluent'); |
| 31 | - $this->app->singleton(FluentLogManager::class, function ($app) { |
|
| 31 | + $this->app->singleton(FluentLogManager::class, function($app) { |
|
| 32 | 32 | $app->configure('fluent'); |
| 33 | 33 | |
| 34 | 34 | return new FluentLogManager($app); |
@@ -26,10 +26,10 @@ |
||
| 26 | 26 | { |
| 27 | 27 | protected function resolveLogManager(): void |
| 28 | 28 | { |
| 29 | - $configPath = __DIR__ . '/config/fluent.php'; |
|
| 29 | + $configPath = __DIR__.'/config/fluent.php'; |
|
| 30 | 30 | $this->mergeConfigFrom($configPath, 'fluent'); |
| 31 | 31 | $this->publishes([$configPath => config_path('fluent.php')], 'log'); |
| 32 | - $this->app->singleton(FluentLogManager::class, function ($app) { |
|
| 32 | + $this->app->singleton(FluentLogManager::class, function($app) { |
|
| 33 | 33 | return new FluentLogManager($app); |
| 34 | 34 | }); |
| 35 | 35 | } |
@@ -143,7 +143,6 @@ |
||
| 143 | 143 | * Returns the entire exception trace as a string |
| 144 | 144 | * |
| 145 | 145 | * @param array<string, mixed> $context |
| 146 | - |
|
| 147 | 146 | * @return string |
| 148 | 147 | */ |
| 149 | 148 | protected function getContextExceptionTrace(array $context): string |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | public function __construct( |
| 53 | 53 | protected LoggerInterface $logger, |
| 54 | 54 | string $tagFormat = null, |
| 55 | - Level|int|string $level = Level::Debug, |
|
| 55 | + Level | int | string $level = Level::Debug, |
|
| 56 | 56 | bool $bubble = true |
| 57 | 57 | ) { |
| 58 | 58 | if ($tagFormat !== null) { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * |
| 106 | 106 | * @return array|string |
| 107 | 107 | */ |
| 108 | - protected function getContext(array $context): array|string |
|
| 108 | + protected function getContext(array $context): array | string |
|
| 109 | 109 | { |
| 110 | 110 | if ($this->contextHasException($context)) { |
| 111 | 111 | return $this->getContextExceptionTrace($context); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $this->resolveLogManager(); |
| 41 | 41 | /** @var LogManager $log */ |
| 42 | 42 | $log = $this->app->make(LoggerInterface::class); |
| 43 | - $log->extend('fluent', function ($app, array $config) { |
|
| 43 | + $log->extend('fluent', function($app, array $config) { |
|
| 44 | 44 | $manager = $app->make(FluentLogManager::class); |
| 45 | 45 | |
| 46 | 46 | return $manager($config); |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $handler = new $fluentHandler( |
| 68 | 68 | new FluentLogger( |
| 69 | 69 | $configure['host'] ?? FluentLogger::DEFAULT_ADDRESS, |
| 70 | - (int)$configure['port'] ?? FluentLogger::DEFAULT_LISTEN_PORT, |
|
| 70 | + (int) $configure['port'] ?? FluentLogger::DEFAULT_LISTEN_PORT, |
|
| 71 | 71 | $configure['options'] ?? [], |
| 72 | 72 | $this->detectPacker($configure) |
| 73 | 73 | ), |