Skip to main content
Version: v4 (Stable)

Initialize

Initialize(sFileName As String [, dwFlags As Integer]) As Boolean

Initialize the LogView object with the filename for the log <sFileName>.

The parameter <dwFlags> allows to define options. Possible options are:

  • LOGFLAG_ADDDATETOFILENAME (value 1): Add the date of the day to the log file name.
  • LOGFLAG_TIMEMS (value 2): If set, the log time includes the milliseconds.
  • LOGFLAG_USEBACKUP (value 4): When set, the logs are written in many files (of fixed size) instead of one circular file.
  • LOGFLAG_DISPLAYCRLF (value 8): If not set, the CR and LF are filtered.
  • LOGFLAG_USEARCHIVEDIR (value 16): When active, only one file is written in the log directory. Older files are moved to the "Archive" subdirectory.
  • LOGFLAG_RAWTRACE (value 32): If set, all chars are written in the file. No more binary char is formatted <xx>.