Add log function.