Improved logging strategy with log4js.