Skip to content

An Elipse E3/Power output window to log messages from both server and viewer sources

Notifications You must be signed in to change notification settings

leandrobpedro/consolelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Elipse E3/Power Console Log

Library for managing logs in Elipse E3/Power. Allows displaying messages in a console window, storing them internally, and exporting to a text file.


How to Use

1. Setup

  1. Add the consolelog.lib library to your domain.
  2. Instantiate the Console Log Engine xObject in a DataServer within any project (.prj) in the domain.
  3. Instantiate the Immediate window xControl on a screen and link its .Console property to the previously created xObject, for example:
    Data.consolelog_Engine1
    

2. Usage

To write a message to the console, use the .WriteLine property of the ConsoleLog xObject:

Sub ExampleMessage()
    Dim consoleLog
    Set consoleLog = Application.GetObject("Data.consolelog_Engine1")
    consoleLog.WriteLine = "Starting verification process..."
End Sub

Or create a helper function for simpler usage:

Sub WriteLog(ByVal message)
    Dim consoleLog
    Set consoleLog = Application.GetObject("Data.ConsoleLog1")
    consoleLog.WriteLine = message
End Sub

Sub ProcessData()
    WriteLog "Processing started"
    ' processing code...
    WriteLog "Processing completed successfully"
End Sub

About

An Elipse E3/Power output window to log messages from both server and viewer sources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •