added loggin support for nodejs