allow custom exception logging