diff --git a/src/App.php b/src/App.php index b10e474885..30fd7b9aad 100644 --- a/src/App.php +++ b/src/App.php @@ -293,7 +293,7 @@ class App { $command = strtolower($argv[1] ?? ''); - if ($command === 'daemon' || $command === 'jetstream') { + if ($command === 'daemon') { return LogChannel::DAEMON; } @@ -301,7 +301,9 @@ class App return LogChannel::WORKER; } - // @TODO Add support for jetstream + if ($command === 'jetstream') { + return LogChannel::JETSTREAM; + } return LogChannel::CONSOLE; } diff --git a/src/Core/Logger/Capability/LogChannel.php b/src/Core/Logger/Capability/LogChannel.php index e82c5d163c..c6f98484a7 100644 --- a/src/Core/Logger/Capability/LogChannel.php +++ b/src/Core/Logger/Capability/LogChannel.php @@ -24,6 +24,8 @@ interface LogChannel public const DAEMON = 'daemon'; /** @var string channel for worker execution */ public const WORKER = 'worker'; + /** @var string channel for jetstream execution */ + public const JETSTREAM = 'jetstream'; /** @var string channel for frontend app executions */ public const APP = 'app'; }