add log as a dependency