Add logging callback when stubs will be overwritten.