Made log function shared.