Remove direct dpendency of log from core.