extracted from log4js
Merge branch 'master' of https://github.com/nomiddlename/log4js-hookio