Variable scriptlikeCustomEcho

By default, scriptlikeEcho and scriptlikeDryRun echo to stdout. You can override this behavior by setting scriptlikeCustomEcho to your own sink delegate. Since this is used for logging, don't forget to flush your output.

void delegate(string) scriptlikeCustomEcho ;

Reset this to null to go back to Scriptlike's default of "echo to stdout" again.

Note, setting this does not automatically enable echoing. You still need to set either scriptlikeEcho or scriptlikeDryRun to true.