Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
405 B

  1. Attribute VB_Name = "Logging"
  2. Option Explicit
  3. Private p_strLogFile As String
  4. Private p_strTID As String
  5. Public Sub SetLogFile()
  6. p_strLogFile = Environ$("TEMP") & "\" & App.Title & ".log"
  7. p_strTID = App.ThreadID
  8. End Sub
  9. Public Sub WriteLog( _
  10. ByVal i_str As String _
  11. )
  12. FileWrite p_strLogFile, "[" & p_strTID & "] " & Date & " " & Time & " > " & _
  13. i_str & vbCrLf, True
  14. End Sub