Added support for logging in recursor