Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, many time I use tLogRow to "debug" a flow but when in production this component could be disabled. Since I usually have at least two context, one with the development values and the other one with the production values, it's possibile using a context variable enable/disable the tLogRow?
Thank you, Stefano.
Hi Stefano,
Yes, it's possible to disable the tLog row in the Prod. While you can see data in tLog in Dev.
In tFixedFlow I have taken two column.
In the RunIf give the condition as [context.check==1] . Thus before trigger if you want to run in DEV set the context variable as 1 and If you want to run in prod set the context as 2.
After trigger in dev [context=1]
Trigger in Prod [context=2]
Hi Stefano,
Yes, it's possible to disable the tLog row in the Prod. While you can see data in tLog in Dev.
In tFixedFlow I have taken two column.
In the RunIf give the condition as [context.check==1] . Thus before trigger if you want to run in DEV set the context variable as 1 and If you want to run in prod set the context as 2.
After trigger in dev [context=1]
Trigger in Prod [context=2]
A second option, but it would disable ALL tLogRow components, is to set the global PrintStream used. So with a tSetVar conditioned by a context value, we can set the "tLogRow_CONSOLE" key as context.log?null:new java.io.PrintStream("NUL") (and under *nix the file name should be /dev/null). "context.log" is in my job a boolean variable.
It would be nice to have a configuration in tLogRow to set it has actually to log or just bypass, since building other structures inside a job make it complex for something is not related to the job work.
Stefano.