Using the Logging component in mrScriptBasic
When you are working in a DMS file, the DataManagerLogging object provides a wrapper to the Logging component. The DataManagerLogging object is automatically available as an object called dmgrLog in the OnJobStart, OnAfterMetadataTransformation, OnNextCase, and OnAfterJobEnd Event sections of your DMS file. However, you need to set up a Logging section in your DMS file. For more information, see
Logging section.
When you are working in an .mrs file, you use the CreateObject function to create an instance of the Logger object. For example:
Dim MyLog
Set MyLog = CreateObject("LogFront.Logger.2")
MyLog.CreateLogInGroupEx(4, "MyLogGroup", "C:\Temp")
MyLog.LogThis(1, "This is my log entry")
Here are the contents of the log file:
0,VER,3.0
0,HISTORY,Previous LogFile: NONE
0,FORMAT,',',RecordSize:long,DateTime:Date,Log Id:long,Log Levels:long,Log group:string,Log scope:string,Log Entry:string
0,CONFIG,10,100,-1,1
73,20030321 09:42:44,1,65535,MyLogGroup,2 - 141b8c,This is my log entry
Requirements
UNICOM Intelligence Data Model
See also