discardLogger should be private