OpenLogFile
This method allows you to open a log file for reading or writing.
Syntax
OpenLogFile( FileName, [IOMode], [ServiceName], [ServiceInstance], [OutputLogFileFormat] )
Parameters
- FileName
- Name of the log file to open.
- IOMode
- Optional parameter indicating whether the log file is opened for reading or writing. This parameter can take one of the following values:
Constant |
Value |
Description |
ForReading |
1 |
Opens the specified log file for reading. |
ForWriting |
2 |
Opens the specified log file for writing. |
If this parameter is omitted, the log file is opened for reading.
- ServiceName
- Optional parameter indicating the logging module should only return records matching this service.
- ServiceInstance
- Optional parameter indicating the logging modules should only return records matching this server instance.
- OutputLogFileFormat
- Optional parameter indicating the format for log files opened for writing.