I built a PDI (Pentaho Data Integration) transformation and I want to change the logic of the process according to the Logging level of it's execution, e.g.:
If the LogLevel is BASIC, MINIMAL or lower, the transformation should execute regularly, however if the LogLevel is DEBUG, additional parts of the transformation (such as certain writes to log, or record dumps to flat files) should execute in addition to the normal workflow.
Is it possible to access the LogLevel of the job while it's running?
I have tried to find the LogLevel inside internal variables such as Internal.* or KETTLE_*, but to no avail.