Skip to main content
InSource Solutions

TN IT192 View System Management Console (SMC) logs from InTouch

InSource_Logo_Transparent.png

 

Description

Describes how to embed the System Management Console's LogViewer component within an InTouch Window.  This will allow users to see the logs without having to exit WindowViewer.

 

  • Author: Dillon Perera
  • Published: 12/31/2015
  • Applies to: InTouch 10.1 and up

 

 

Details

1. Open WindowMaker and create a window where you want to display the logs

2. Go to the Special Menu, and under Configure select Wizards/ActiveX Installation...

3. Go to the ActiveX Control Installation tab

4. On the bottom list of Available ActiveX controls select "LogViewer" and click Install, to add it to the list at the top.

5. Click Close and go to the new Window you created in Step 1.

6. Click on the Wizards icon in the toolbar, and go to the ActiveX list.  

Select LogViewerCtrl and click Ok, then add it to your Window.

 

If there are a lot of logs to display, the LogViewer control can slow InTouch down when first opening.  To alleviate this problem we will add a few buttons to only show us what we are interested in.

 

7. Double click on the LogViewer control on the screen, and note the ControlName, we will need this for the next few steps.  In this example the ControlName is LogViewerCtrl1.

 

8. Add three buttons under the LogViewer control, named Filters, Connect, and Disconnect.

 

9. Double click the Filters button and add an action script with the following:

#LogViewerCtrl1.Filter();

 

This button will be used to filter the logs that will be displayed.  This is done first to limit the amount of logs retrieved, and speed up how long it takes.

 

10. Double click the Connect button and add an action script with the following:

#LogViewerCtrl1.HostName = "localhost";
#LogViewerCtrl1.Refresh();

This button will tell the LogViewer control which computer to view logs from, and then grab the log messages that match your filter.

 

11. Double click the Disconnect button and add an action script with the following:

#LogViewerCtrl1.Connected=0;

This button will tell the LogViewer control to disconnect and stop retrieving log messages.  This should be done either manually through the button, or on a Window Script when the window is hidden, to free system resources.