Capture logging into new windowI'm trying to capture the logging information into new window. Following code isn't showing anything in new window.
This is a first step towards an integrated GUI where "log" is also a tab and can be checked instantly to view logging instead of going to JMP logging page which is separate window.
logging = New Window("Logging",
xx=Border Box( Left( 10 ), Right( 10 ), Top( 5 ), Bottom( 5 ), Sides( 15 ),
all contents = Get Log();
logging_capture = Text Edit Box();
logging_capture << Set Text(all contents);
)
);Re: Capture logging into new windowis there any alternative to Get Log(); which captures print/show/write functions only? I can then get very selected log printed. I will also read in the documentation to find if anything available.
Re: Capture logging into new windowBang on target! Thanks. Below captures the log in a window.
logging = New Window( "Database Query",
dataB = Border Box( Left( 10 ), Right( 10 ), Top( 10 ), Bottom( 5 ), Sides( 15 ),
V List Box(
Text Box( "logging data", set font size( 10 ) ),
all_contents = Get Log(),
x = N Items( all_contents );
text="";
logging_capture = Text Box(),
For( i = 1, i <= x, i++,
text = text ||all_contents[i] || "\\!n";
);
logging_capture << Set Text( text);
)
)
);Re: Capture logging into new window'GetLog()' returns a list, so you have to parse it into text strings before putting it in the TextBox(). In so far as your application is user controlled, then the 'automated' logging doesn't sound too hard - You just need to ask every button that the user might press to get the new contents of the log.
Re: Capture logging into new window
My problem is, I'm trying to have another tap in my integrated gui where realtime logging is seen. So that user can just click that tap and see the og instead of going to another window.

Re: Capture logging into new windowhave you looked into projects at all?
Names default to here(1);
p = new project();
p << Run Script(
New Window("Script 1",
Set Window ID("Script"),
<<SCRIPT>&amp;amp;amp;lt;/PRE&amp;amp;amp;gt;
&amp;amp;amp;lt;P&amp;amp;amp;gt;&amp;amp;amp;nbsp;&amp;amp;amp;lt;/P&amp;amp;amp;gt;
&amp;amp;amp;lt;P&amp;amp;amp;gt;All scripts also have an embedded log available if that&amp;amp;amp;amp;#39;s something you like better too. If you right click a script window, you should see &amp;amp;amp;amp;quot;Show Embedded Log&amp;amp;amp;amp;quot;.&amp;amp;amp;nbsp;&amp;amp;amp;nbsp;&amp;amp;amp;lt;/P&amp;amp;amp;gt;&amp;amp;amp;lt;/lingo-body&amp;amp;amp;gt;</SCRIPT>