diff --git a/services.yml b/services.yml index 3ecd9df..39cc6a2 100644 --- a/services.yml +++ b/services.yml @@ -37,8 +37,12 @@ services: arguments: - 'text/html' - Psr\Log\LoggerInterface: - class: \Monolog\Logger + Psr\Log\LoggerInterface: '@webgriffe_esb_logger' + + Webgriffe\Esb\LoggerResettableInterface: '@webgriffe_esb_logger' + + webgriffe_esb_logger: + class: \Webgriffe\Esb\Logger\LoggerResettable arguments: [ 'esb', ['@Monolog\Handler\StreamHandler', '@Monolog\Handler\ErrorLogHandler', '@Monolog\Handler\NativeMailerHandler'] ] public: true diff --git a/src/Logger/LoggerResettable.php b/src/Logger/LoggerResettable.php new file mode 100644 index 0000000..2be7373 --- /dev/null +++ b/src/Logger/LoggerResettable.php @@ -0,0 +1,11 @@ +