Added code to disable logging durring doctests