Add Media::logMetadata, and provide trace logging in debug builds for the major workhorse objects