#1 2009-03-02 19:07:44

axelrod_eric
Member
Company: Daugherty Business Solutions
Registered: 2009-02-25
Posts: 22
Website

Print to log window

Tags: [java, log, print]

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?

Offline

#2 2009-03-02 21:34:21

strpdsnk
Member
Registered: 2008-03-25
Posts: 328

Re: Print to log window

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

Code:

System.out.println("");
System.out.println("***" + jobName + "***");
System.out.println("");

Offline

#3 2009-03-02 22:42:29

axelrod_eric
Member
Company: Daugherty Business Solutions
Registered: 2009-02-25
Posts: 22
Website

Re: Print to log window

strpdsnk wrote:

Code:

System.out.println("");

Works like a charm.

Thanks!

Offline

Board footer

Powered by FluxBB