Re: PSR Log - Why no NULL default value for LoggerAwareInterface and LoggerAwareTrait

2016-11-03 Thread Alessandro Lai
You shouldn't make the logger optional, IMHO. If you want, there is a NullLogger implementation that you can use in edge cases (or during tests). Il giorno giovedì 3 novembre 2016 14:51:01 UTC+1, n.y...@gmx.at ha scritto: > > Thank your for this fast answer. As i wrote i am aware that this was ju

Re: PSR Log - Why no NULL default value for LoggerAwareInterface and LoggerAwareTrait

2016-11-03 Thread n . y . z . e
Thank your for this fast answer. As i wrote i am aware that this was just an example. I am just wondering when things going towards standards then why is NULL not considered to be a standard value. NULL is wanted sometimes to express that someting is optional. Am Donnerstag, 3. November 2016

Re: PSR Log - Why no NULL default value for LoggerAwareInterface and LoggerAwareTrait

2016-11-03 Thread Sven Sauleau
Hi, The goal of the php-fig/log repository is to provide interfaces and more globally a standard for logging. You are pointing out an implementation issue. The code you saw in the README is only an example. A real example would be like https://github.com/Seldaek/monolog/blob/7ce63f964426a57b6

PSR Log - Why no NULL default value for LoggerAwareInterface and LoggerAwareTrait

2016-11-03 Thread n . y . z . e
Can you guys please answer this question to me http://stackoverflow.com/questions/40401259/psr-log-why-no-null-default-value-for-loggerawareinterface-and-loggerawaretraiace and LoggerAwareTrait Thank you -- You received this message because you are subscribed to the Google Groups "PHP Framew