diff --git a/src/Spryker/Glue/Log/Plugin/Handler/NonBufferedStreamHandlerPlugin.php b/src/Spryker/Glue/Log/Plugin/Handler/NonBufferedStreamHandlerPlugin.php new file mode 100644 index 0000000..caf3476 --- /dev/null +++ b/src/Spryker/Glue/Log/Plugin/Handler/NonBufferedStreamHandlerPlugin.php @@ -0,0 +1,28 @@ +handler) { + $this->handler = $this->getFactory()->createStreamHandler(); + } + + return $this->handler; + } +} diff --git a/src/Spryker/Yves/Log/LogFactory.php b/src/Spryker/Yves/Log/LogFactory.php index 239d2f9..da1d071 100644 --- a/src/Spryker/Yves/Log/LogFactory.php +++ b/src/Spryker/Yves/Log/LogFactory.php @@ -226,7 +226,7 @@ public function createBufferedStreamHandler() /** * @return \Monolog\Handler\HandlerInterface|\Monolog\Handler\StreamHandler */ - protected function createStreamHandler() + public function createStreamHandler() { $streamHandler = new StreamHandler( $this->getConfig()->getLogDestinationPath(), diff --git a/src/Spryker/Yves/Log/Plugin/Handler/NonBufferedStreamHandlerPlugin.php b/src/Spryker/Yves/Log/Plugin/Handler/NonBufferedStreamHandlerPlugin.php new file mode 100644 index 0000000..0223a3a --- /dev/null +++ b/src/Spryker/Yves/Log/Plugin/Handler/NonBufferedStreamHandlerPlugin.php @@ -0,0 +1,28 @@ +handler) { + $this->handler = $this->getFactory()->createStreamHandler(); + } + + return $this->handler; + } +} diff --git a/src/Spryker/Zed/Log/Communication/LogCommunicationFactory.php b/src/Spryker/Zed/Log/Communication/LogCommunicationFactory.php index 1803fef..ac7f77d 100644 --- a/src/Spryker/Zed/Log/Communication/LogCommunicationFactory.php +++ b/src/Spryker/Zed/Log/Communication/LogCommunicationFactory.php @@ -234,7 +234,7 @@ public function createBufferedStreamHandler() /** * @return \Monolog\Handler\HandlerInterface|\Monolog\Handler\StreamHandler */ - protected function createStreamHandler() + public function createStreamHandler() { $streamHandler = new StreamHandler( $this->getConfig()->getLogDestinationPath(), diff --git a/src/Spryker/Zed/Log/Communication/Plugin/Handler/NonBufferedStreamHandlerPlugin.php b/src/Spryker/Zed/Log/Communication/Plugin/Handler/NonBufferedStreamHandlerPlugin.php new file mode 100644 index 0000000..894c390 --- /dev/null +++ b/src/Spryker/Zed/Log/Communication/Plugin/Handler/NonBufferedStreamHandlerPlugin.php @@ -0,0 +1,30 @@ +handler) { + $this->handler = $this->getFactory()->createStreamHandler(); + } + + return $this->handler; + } +}