I'm trying to write to the NT event log from a module but it doesn't appear to be working and the VB docs are a little sketchy on this subject. I have this line:
App.StartLogging "", vbLogToNT
I added a watch for "App" and stepped through the code and noticed that LogMode never changes from 0. I expected it to change to 3. Is this behavior correct?
Later in the code I have this:
App.LogEvent "Directory Created", 4
The program does go over this line when I step through it but nothing shows up in my event log.
I'm running this on NT Server 4.0 SP5 with VB6 SP3.
The program consists of two modules. All input is from the command line.