Implement monolog addon as LoggerFactory #1598
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
2025.02
2025.05
dependencies
Hackathon 2021
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#1598
Loading…
Reference in a new issue
No description provided.
Delete branch "Art4/friendica-addons:loggerfactory-in-monolog-addon"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since https://github.com/friendica/friendica/pull/14682 Friendica has a new
LoggerManager
, that can be customized with a\Friendica\Core\Logger\Factory\LoggerFactory
implementation.This PR implements the Monolog factory as
LoggerFactory
and makes the current strategy config file obsolet. I also have added aREADMD.md
to describe how to switch to monolog and have bumped the version to 1.1.loggerfactory-in-monolog-addonto Implement monolog addons as LoggerFactoryImplement monolog addons as LoggerFactoryto Implement monolog addon as LoggerFactory@ -0,0 +48,4 @@
$logger->pushProcessor(new UidProcessor());
$logger->pushProcessor(new IntrospectionProcessor($this->introspection, LogLevel::DEBUG));
$logfile = $this->config->get('system', 'logfile');
Why change the capitalization of
$logLevel
but not of$logfile
?$logLevel
comes from theLoggerFactory
interface, but I had no reason to change$logfile
.