Split off work into a new method to facilitate extension, fixes #945
Split off work into a new method to facilitate extension, fixes #945

thiagotalma/monolog,gencer/monolog,lyrixx/monolog,localheinz/monolog,pomaxa/monolog,Seldaek/monolog