Added external logging support in discovery and yami_container