-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prepare event handler scenario and clean up manual test * Push abstraction of logger gateway as facing one * fix construction * collect logs
- Loading branch information
Showing
25 changed files
with
353 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/Ecotone/src/Messaging/Handler/Logger/LoggingGateway.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ecotone\Messaging\Handler\Logger; | ||
|
||
use Ecotone\Messaging\Attribute\MessageGateway; | ||
use Ecotone\Messaging\Attribute\Parameter\Header; | ||
use Ecotone\Messaging\Attribute\Parameter\Payload; | ||
use Ecotone\Messaging\Message; | ||
|
||
interface LoggingGateway | ||
{ | ||
#[MessageGateway(LoggingService::INFO_LOGGING_CHANNEL)] | ||
public function info( | ||
#[Payload] string $text, | ||
#[Header(LoggingService::CONTEXT_MESSAGE_HEADER)] Message $message, | ||
#[Header(LoggingService::CONTEXT_EXCEPTION_HEADER)] ?\Exception $exception = null | ||
): void; | ||
|
||
#[MessageGateway(LoggingService::ERROR_LOGGING_CHANNEL)] | ||
public function error( | ||
#[Payload] string $text, | ||
#[Header(LoggingService::CONTEXT_MESSAGE_HEADER)] Message $message, | ||
#[Header(LoggingService::CONTEXT_EXCEPTION_HEADER)] ?\Exception $exception = null | ||
): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.