Home Reference WMI Reference root default LogFileEventConsumer


Logs events to a text file

Quick Start


Most WMI properties are read-only. You can only read values but not change them. Few properties are also writeable. You can assign new values to those properties.

Writeable properties are marked with this icon:   


Data type UInt8


Data type String

Fully qualified path name for the log file. If file does not exist, it will be created. If directory does not exist, file will not be created.


Data type Boolean

If $false or NULL, file will not be Unicode.


Data type String


Data type UInt64

Maximum size to which file is allowed to grow. It will be archived when it exceeds this size. Archived files have an extension of .001 through .999. A value of zero will be interpreted to mean ‘do not archive.’


Data type UInt32


Data type String

A unique identifier for this instance


Data type String

Message to be inserted into the log file



Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:32:09 (UTC).