On 06/25/2017 01:21 PM, Joaquin wrote:
> Hello. I was wondering if it was at all possible to have a static
> logger option. For my purposes I do not need an object for logging and
> calling non-static methods statically is deprecated in PHP 7.

If you want to bridge your code to a PSR-3 object, it's trivial enough
to have a global function that returns a singleton version of a PSR-3
object from your PSR-3 implementation of your choice.

I would not encourage doing so, but it's simple enough to make such a
wrapper yourself that I don't see a need for a PSR on it.

--Larry Garfield

-- 
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/c3b3bd9e-9b18-1f19-cd0a-a217128d1516%40garfieldtech.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to