-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log require ^7.1.3 and monolog ~1.11 #25380
Comments
That's not true , monolog 1.x.x doesn't support php7.x, only 2.x does |
monolog 1.x definitely supports php 7. Version 2 will ONLY support php 7.1 and above. |
I know it support php7.x, But in monolog 1.x.x class Monolog/Formatter/MongoDBFormatter use \MongoDate class which found in deprecated mongo php extension. Apparently no one use Mongo extension any more, |
Also see this recent journey regarding Monolog/MongoDB interactions: #25170 |
Description:
The question is monolog 1.xx works only when php is php5.x, not php7.x
Steps To Reproduce:
use mono log handler
'mongo' => [
'driver' => 'monolog',
'handler' => Monolog\Handler\MongoDBHandler::class,
'formatter' => Monolog\Formatter\MongoDBFormatter::class,
'handler_with' => [
'mongo' => new \MongoDB\Client('mongodb://127.0.0.1:27017'),
'database' => 'db_log',
'collection' => 'log_' . date('Y_m_d')
],
]
The text was updated successfully, but these errors were encountered: