Demo implementation of Switchable Logger explained at http://zarkostankovic.rs/2019/05/02/switchable-logger
If you want to give it a try, please download the source code and run the following: $ php index.php
(don't forget to start Redis server first!).
MIT