implement log every second