Add create log functionality