Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Print to log window

Is there a simple way to print output to the log window in the Java engine?
For example, in assigning context variable values, I would like to print the newly assigned variable to the log window.
How can this be accomplished?
Labels (3)
2 Replies
Anonymous
Not applicable
Author

you can use one of the tJava components (tJava, tJavaFlex, tJavaRow) (usually I use tJavaRow, but there are times you need to use the other two)
and do a System.out.print(); or System.out.println(); command, with the information you want
example: I start a lot of my jobs with a tJava component with the following code, to print out the Job Name to the console
System.out.println("");
System.out.println("***" + jobName + "***");
System.out.println("");
Anonymous
Not applicable
Author

System.out.println("");


Works like a charm.
Thanks!