We may provide some logging function from the groovy headers like debug, log, warn, error, panic.
They shall write to files which path shall be specified via an env variable LOGF; the first shall not emit unless DEBUG is true, the last two shall also emit to stderr and last shall then "properly" panic.
We may further discuss whether we also need to track whether a panic error would be related only to the current setting (i.e. current query, current dataset, current parameters), or to the whole DB/Dataset or the shall panic the whole experiment.
We should have at least 3 streams:
We may provide some logging function from the
groovy
headers likedebug
,log
,warn
,error
,panic
. They shall write to files which path shall be specified via an env variableLOGF
; the first shall not emit unlessDEBUG
is true, the last two shall also emit to stderr and last shall then "properly" panic.We may further discuss whether we also need to track whether a panic error would be related only to the current setting (i.e. current query, current dataset, current parameters), or to the whole DB/Dataset or the shall panic the whole experiment.