add log

call log function