LogFile | ||
Class | ||
Member of ScriptUtils Use LogFile object |
Other features
ArraySeparator | Separator of values in an array. | |
String, RW | ||
DateTimeFormat | Defines format for the DateTime fields. | |
String, RW | ||
Encode | Encoding of logged values. No encoding or URL encode. | |
LogLineEncodes, RW | ||
FieldSeparator | Separator of logged values. This property is used to separate values on beggining of line and values from Log method. | |
String, RW | ||
FieldsHeaders | Description of additional fields in the log file. | |
String, RW | ||
FileBegin | Comment on the beggining of the log file. | |
String, RW | ||
LineBegin | Defines fields on a begin of the log line. | |
LogLineBeginTypes, RW | ||
TemplateFileName | Full template for log path and file name. The template can contains special tags to specify filename for each day/week/month. | |
String, RW | ||
FileName | Full path and name of the current log file. | |
String, RO | ||
IsOpen | Returns True if the log file is open. | |
Boolean, RO | ||
LocalDateTime | Specicifies if Logal or Global (GMT) date and time is logged. | |
Boolean, RO |
| ||
Dim LogFile 'Create LogFile object Set LogFile = CreateObject("ScriptUtils.LogFile") LogFile.TemplateFileName = "D:\LogFiles\LG%y%m%d.LOG" 'Write one string to the log file LogFile.LogLine "some line to the log file." 'Write more values to the log file LogFile.Log "Some", "String", "Or", "Numeric", 25, "Values" |