added setlog()