Page 1 of 1

debugging in Denormalizer

Posted: Wed Mar 20, 2013 6:26 am
by stephen.hlx
Dear all,

I am using Denormalizer component in a graph.
But a NPException is being thrown and I am looking into the problem by sending some message to the console.
However, none of the approaches I tried worked.
Logger("InfoLogger")
System.out.println()
System.err.println()

It seems only messages from [WatchDog] can be shown in the console.

May I know what is the common way of writing to console?
Or should I have sent the message to WatchDog, if so, how?

Integrator Version: 2.4.0 r687439

Thanks a lot!

Stephen

Re: debugging in Denormalizer

Posted: Wed Mar 20, 2013 8:52 am
by kubosj
Hi Stephen,

inside of CloverETL transform you can use something like:

Code: Select all

getGraph().getLogger().debug("wow");
getGraph().getLogger().warn("wow");
getGraph().getLogger().info("wow");
getGraph().getLogger().error("wow");


By default info, error and warning should be displayed in run log.