Refactored log4js and morgan extensions.