[GH-ISSUE #518] Error with Psr/Log #183

Closed
opened 2026-03-04 02:12:56 +03:00 by kerem · 1 comment
Owner

Originally created by @afuno on GitHub (Mar 1, 2015).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/518

After connecting:
use Vendor\Classes\Monolog\Logger;
use Vendor\Classes\Monolog\Handler\StreamHandler;

Occurs error:
Warning: require_once(/var/www/username/data/www/site.com/Psr/Log/LoggerInterface.php): failed to open stream: No such file or directory in /var/www/username/data/www/site.com/Vendor/Classes/Autoloader.php on line 18 Fatal error: require_once(): Failed opening required '/var/www/username/data/www/site.com/Psr/Log/LoggerInterface.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/username/data/www/site.com/Vendor/Classes/Autoloader.php on line 18

It is because of these lines in the file Vendor\Classes\Monolog\Logger:
use Psr\Log\LoggerInterface;
use Psr\Log\InvalidArgumentException;

How to fix it? I could not find with the same name files and/or classes.

Originally created by @afuno on GitHub (Mar 1, 2015). Original GitHub issue: https://github.com/Seldaek/monolog/issues/518 After connecting: use Vendor\Classes\Monolog\Logger; use Vendor\Classes\Monolog\Handler\StreamHandler; Occurs error: Warning: require_once(/var/www/username/data/www/site.com/Psr/Log/LoggerInterface.php): failed to open stream: No such file or directory in /var/www/username/data/www/site.com/Vendor/Classes/Autoloader.php on line 18 Fatal error: require_once(): Failed opening required '/var/www/username/data/www/site.com/Psr/Log/LoggerInterface.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/username/data/www/site.com/Vendor/Classes/Autoloader.php on line 18 It is because of these lines in the file Vendor\Classes\Monolog\Logger: use Psr\Log\LoggerInterface; use Psr\Log\InvalidArgumentException; How to fix it? I could not find with the same name files and/or classes.
kerem closed this issue 2026-03-04 02:12:56 +03:00
Author
Owner

@afuno commented on GitHub (Mar 1, 2015):

https://github.com/php-fig/log

<!-- gh-comment-id:76639410 --> @afuno commented on GitHub (Mar 1, 2015): https://github.com/php-fig/log
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#183
No description provided.