Open Daniel-KM opened 6 years ago
This is the first I'd actually looked into PSR-3, I didn't realize it specifies a placeholder/interpolation system.
It's definitely not in any current plans but I'm not opposed to the idea. In general, I'm in favor of using broader standards where they're available and feasible rather than just Zend's stuff directly.
In fact, current messages are psr-3 compliant, because sprintf is used inside the message, so the logger never see placeholders "%s". But they are not translatable and not manageable, because "%s" are sprintf-ed, so each message is unique. So I'm going to do a pull request in February.
In order to get translatable logs, and manageable logs with third party services, they must be psr-3 compliant (see details on http://www.php-fig.org/psr/psr-3/ or on my module (Daniel-KM/Omeka-S-module-Log). Is there a plan for that (it implies to modify all log messages that use sprintf)? Or will you accept a pull request for that?