encapsulated log4js and made use of util.format in module log