Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Jurj-Bogdan <bogdanjurj11@gmail.com>
  • Loading branch information
Jurj-Bogdan committed Feb 14, 2025
1 parent 7a10856 commit e0d7c07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/book/v5/adding-config-provider.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Adding The Config Provider

* In `config/config.php` add an entry for the config provider `\Dot\Log\ConfigProvider::class`
* Make sure it is added before with the Application-Specific components, eg.:
* Make sure it is added before the Application-Specific components, e.g.:
* `\Frontend\App\ConfigProvider.php`
* `\Admin\App\ConfigProvider::class`
* `\MyProject\ConfigProvider::class` etc.
* Add the logger configuration in an autoload config file, e.g. you can create `config/autoload/logger.global.php`. Follow the `Configuring the writer(s)` chapter for a simple working example.
* Add the logger configuration in an autoload config file, e.g. you can create `config/autoload/logger.global.php`.
Follow the `Configuring the writer(s)` chapter for a simple working example.

> `Dot\Log\ConfigProvider` has an abstract factory `LoggerAbstractServiceFactory::class` which corresponds to the alias, not the class name.
> Instead of requesting `Dot\Log\Logger::class` from the container, use `dot-log.my_logger`.

0 comments on commit e0d7c07

Please sign in to comment.