Add a new withRedirectLogOutput method to the script DSL that will accept a Boolean to set redirectLogOutput to for the duration of a given Closure. Example:
// redirectLogOutput is set to true
log.info "Will go to original stdout"
withRedirectLogOutput(false) {
log.info "Will be shown in cell output"
}
log.info "Will also go to original stdout"
┆Reporter: Stainless Bot
┆Issue Type: Story
┆Priority: Medium
┆Status: Backlog
┆Issue Number: MJ-41
┆Epic: Work on the default DSL for the Jupyter scripts
Add a new
withRedirectLogOutput
method to the script DSL that will accept aBoolean
to setredirectLogOutput
to for the duration of a givenClosure
. Example:┆Reporter: Stainless Bot ┆Issue Type: Story ┆Priority: Medium ┆Status: Backlog ┆Issue Number: MJ-41 ┆Epic: Work on the default DSL for the Jupyter scripts