We have previously used the MSDN Enterprise Library for logging, but I’m looking at other solutions that allow log file rotation, etc. SmartInspect seems to do many of the things we need. However, I have a couple of questions:
- In writing to log files from a Windows Service, when I use the following (in VB.NET):
SiAuto.Si.Connections = “file(filename=.\log\log.sil)”
the directory ‘log’ is created under ‘c:\windows\system32’ (in XP) which is the root folder for the Services service, which I guess makes sense.
Is there a shortcut or any way to specify that I want the log file to be written to a ‘log’ folder under the folder where my Windows Service executable is installed? I can use the full path, but I would like to just specify as shown above if possible.
- When logging to the ‘log.sil’ file the SmartInspect console does not auto-update when the contents of the file changes - can this be enabled, or at least could you prompt the user that the contents of the file have changed since the file was opened (for example TextPad does this)?