Get output from Log Windows

Dear ImageJ users,

first of all I hope that question has not been asked.

Can I get the output displayed in the Log Window from
within my Macro? I’m using a Fiji Plugin and want to
capture the output from it to use it in my Macro.

Best regards,

Good day Stephan,

the following macro shows how to do this:

// begin macro //////////////////////////////
print( “Text to log” );
logString = getInfo( “log” );
print( "Recalled log-String: " + logString );
// macro end //////////////////////////////

In similar situations I strongly recommend to first search the list of “Built-in Macro Functions” at:




Thanks for pointing me to the appropriate documentation.

1 Like