Implement post-exec function
add .log() function for legacy support