If it fails, innerLogger will be null and your catch block is useless.