Skip to content
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

Closed
shooyaaa opened this issue Aug 30, 2018 · 5 comments
Closed

log require ^7.1.3 and monolog ~1.11 #25380

shooyaaa opened this issue Aug 30, 2018 · 5 comments

Comments

@shooyaaa
Copy link

shooyaaa commented Aug 30, 2018

  • Laravel Version: 5.6.4
  • PHP Version: 7.1.3
  • Database Driver & Version: mongo 3.6

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')
],
]

@ankurk91
Copy link
Contributor

@shooyaaa
Copy link
Author

That's not true , monolog 1.x.x doesn't support php7.x, only 2.x does

@devcircus
Copy link
Contributor

monolog 1.x definitely supports php 7. Version 2 will ONLY support php 7.1 and above.

@shooyaaa
Copy link
Author

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,

@mfn
Copy link
Contributor

mfn commented Aug 31, 2018

Also see this recent journey regarding Monolog/MongoDB interactions: #25170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants