aimeos / ai-monolog
Monolog adapter for Aimeos e-commerce solutions
Installs: 17 799
Dependents: 3
Suggesters: 0
Security: 0
Stars: 9
Watchers: 5
Forks: 1
Open Issues: 0
Type:aimeos-extension
Requires
- php: ^8.0.11
- aimeos/aimeos-core: 2024.10.*
- monolog/monolog: ~2.0||~3.0
Requires (Dev)
- phpunit/phpunit: ~10.0||~11.0
- dev-master
- 2024.10.x-dev
- 2024.10.2
- 2024.10.1
- 2024.07.x-dev
- 2024.07.1
- 2024.04.x-dev
- 2024.04.1
- 2024.01.x-dev
- 2023.10.x-dev
- 2023.10.1
- 2023.07.x-dev
- 2023.07.1
- 2023.04.x-dev
- 2023.04.1
- 2023.01.x-dev
- 2022.10.x-dev
- 2022.10.2
- 2022.10.1
- 2022.07.x-dev
- 2022.07.1
- 2022.04.x-dev
- 2022.04.1
- 2022.01.x-dev
- 2021.10.x-dev
- 2021.10.2
- 2021.10.1
- 2021.07.x-dev
- 2021.07.1
- 2021.04.x-dev
- 2021.04.1
- 2021.01.x-dev
- 2020.10.x-dev
- 2020.10.2
- 2020.10.1
- 2020.07.x-dev
- 2020.07.1
- 2020.04.x-dev
- 2020.04.1
- 2020.01.x-dev
- 2020.01.1
- 2019.10.x-dev
- 2019.10.1
- 2019.07.x-dev
- 2019.07.1
- 2019.04.x-dev
- 2019.04.2
- 2019.04.1
- 2019.01.x-dev
- 2019.01.1
- 2018.10.x-dev
- 2018.10.2
- 2018.10.1
- 2018.07.x-dev
- 2018.07.1
- 2018.04.x-dev
- 2018.04.1
- 2018.01.x-dev
- 2018.01.2
- 2018.01.1
- 2017.10.x-dev
- 2017.10.1
- 2017.07.x-dev
- 2017.07.2
- 2017.07.1
- 2017.04.x-dev
- 2017.04.1
- 2017.03.x-dev
- 2017.02.x-dev
- 2017.01.x-dev
- 2017.01.2
- 2017.01.1
- 2016.10.x-dev
- 2016.10.1
- 2016.07.x-dev
- 2016.07.2
- 2016.07.1
- 2016.04.x-dev
- 2016.04.1
- 2016.01.x-dev
- 2016.01.1
- 2015.10.x-dev
- 2015.10.2
- 2015.10.1
- 2015.07.x-dev
- 2015.07.1
- 2015.03.x-dev
- 2015.03.1
- 2015.03.0
- dev-scrutinizer-patch-1
This package is auto-updated.
Last update: 2024-11-20 09:06:20 UTC
README
Aimeos Monolog adapter
The Aimeos ecommerce components can integrate into almost any PHP application and uses the infrastructure of the application for building URLs, caching content, configuration settings, logging messages, session handling, sending e-mails or handling translations.
The ai-monolog extension integrates the PHP Monolog library for logging messages into Aimeos. It's useful if your application already uses Monolog for logging and offers access to a Monolog object that can be used together with this extension.
Table of content
Installation
To allow the Aimeos ecommerce components accessing the log infrastructure of your own framework or application, you have to install the adapter first. As every Aimeos extension, the easiest way is to install it via composer. If you don't have composer installed yet, you can execute this string on the command line to download it:
php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer
Install the Monolog adapter using:
composer req aimeos/ai-monolog
Setup
Now add the Monolog object to the Aimeos context, which you have to create to get the Aimeos components running:
// $logger is a Monolog instance
$log = new \Aimeos\Base\Logger\Monolog( $logger );
$context->setLogger( $log );
License
The Aimeos ai-monolog extension is licensed under the terms of the LGPLv3 license and is available for free.