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 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 14:31:52 UTC+1 schrieb 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/7ce63f964426a57b6a1c213d45e05eef1f013c54/src/Monolog/ErrorHandler.php#L42
>>  
>> (also from Seldaek).
>>
>> Le vendredi 4 novembre 2016 06:16:34 UTC+6, n.y...@gmx.at a écrit :
>>>
>>> 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 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/177245f5-0b5f-42d4-b37d-ab447bf00c5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to