Name
WriteLogRecord —
objLogUtil
.WriteLogRecord
objLogUtilWrite
Synopsis
Allows you to write a log record from one open log file to another log file. You can only write a log record that already exists in a separate log file.
Parameters
-
objLogUtilWrite The Logging Utility object whose current record you wish to write to a second log file (accessed through
objLogUtil).
Example
See the example at the end of this chapter.
Notes
The WriteLogRecord method allows you to iterate through one log file and add specific records that match some criterion to another log file. This is very important for reporting on very large sites. For example, you could create a script that iterates through all records in a log file and flags those whose security is questionable by recording them in another log file, then uses the new log file to generate a report.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access