console.log replaced with winston logger module.
EnvType enum implemented using module Enum.