diff --git a/README.md b/README.md index 266b828..19666a1 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,18 @@ # dot-log +Robust, composite logger with filtering and formatting. + > [!IMPORTANT] > dot-log is a wrapper on top of [laminas/laminas-log](https://github.com/laminas/laminas-log) -> -> ![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Flaminas%2Flaminas-log%2Fproperties%2Fvalues&query=%24%5B%3F(%40.property_name%3D%3D%22maintenance-mode%22)%5D.value&label=Maintenance%20Mode) -## dot-log badges +## Documentation + +Documentation is available at: https://docs.dotkernel.org/dot-log/v3/overview/. + +## Badges ![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-log) -![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-log/3.4.4) +![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-log/3.5.4) [![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-log)](https://github.com/dotkernel/dot-log/issues) [![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-log)](https://github.com/dotkernel/dot-log/network) @@ -18,13 +22,11 @@ [![Build Static](https://github.com/dotkernel/dot-log/actions/workflows/continuous-integration.yml/badge.svg?branch=3.0)](https://github.com/dotkernel/dot-log/actions/workflows/continuous-integration.yml) [![codecov](https://codecov.io/gh/dotkernel/dot-log/graph/badge.svg?token=JX19KTBRCZ)](https://codecov.io/gh/dotkernel/dot-log) -[![SymfonyInsight](https://insight.symfony.com/projects/287e81e8-b4fb-4452-bd8f-4f12c0ab1f76/big.svg)](https://insight.symfony.com/projects/287e81e8-b4fb-4452-bd8f-4f12c0ab1f76) - ## Adding The Config Provider * Enter config/config.php * If there is no entry for the config provider below, add it: -`\Dot\Log\ConfigProvider::class` + `\Dot\Log\ConfigProvider::class` * Make sure it is added before with the Application-Specific components, eg.: `\Frontend\App\ConfigProvider.php`, `\Admin\App\ConfigProvider::class`, `MyProject\ConfigProvider::class` , etc. * Open the `Dot\Log\ConfigProvider` * In the dependencies section you will see an abstract factory (`LoggerAbstractServiceFactory::class`) @@ -277,5 +279,3 @@ Sources: * https://docs.laminas.dev/laminas-log/ * https://docs.laminas.dev/laminas-log/writers/ * https://docs.laminas.dev/laminas-log/filters/ - -Extracted from [this article](https://www.dotkernel.com/dotkernel/logging-with-dot-log-in-mezzio-and-dotkernel) diff --git a/SECURITY.md b/SECURITY.md index 8446926..253c3e8 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -3,10 +3,12 @@ ## Supported Versions -| Version | Supported | PHP Version | -|---------|--------------------|----------------------------------------------------------------------------------------------------| +| Version | Supported | PHP Version | +|---------|--------------------|---------------------------------------------------------------------------------------------------------| +| 5.x | :white_check_mark: | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-log/5.0.0) | +| 4.x | :white_check_mark: | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-log/4.1.1) | | 3.x | :white_check_mark: | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-log/3.4.7) | -| <= 2.x | :x: | | +| <= 2.x | :x: | | ## Reporting Potential Security Issues diff --git a/composer.json b/composer.json index 70cae91..9f2e4b0 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,6 @@ "log", "logging", "services", - "mezzio", "laminas", "laminas-log" ], diff --git a/docs/book/index.md b/docs/book/index.md deleted file mode 100644 index ae42a26..0000000 --- a/docs/book/index.md +++ /dev/null @@ -1 +0,0 @@ -../../README.md diff --git a/docs/book/index.md b/docs/book/index.md new file mode 120000 index 0000000..42061c0 --- /dev/null +++ b/docs/book/index.md @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/test/Factory/LoggerAbstractServiceFactoryTest.php b/test/Factory/LoggerAbstractServiceFactoryTest.php index b41f98d..95e59c4 100644 --- a/test/Factory/LoggerAbstractServiceFactoryTest.php +++ b/test/Factory/LoggerAbstractServiceFactoryTest.php @@ -38,11 +38,11 @@ protected function setUp(): void /** * @throws ContainerExceptionInterface */ - public function testWillInstantiate() + public function testWillInstantiate(): void { $this->container ->method('has') - ->will($this->onConsecutiveCalls(true, false)); + ->willReturn(true, false, false); $this->container->expects($this->once()) ->method('get')