spnLogBlock function

Log to a blocks log or in the console