logging change function to console