Home Reference WMI Reference root default LogFileEventConsumer
 

LogFileEventConsumer

Logs events to a text file

Quick Start

Properties

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:   

CreatorSID

Data type UInt8

  Filename

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.

  IsUnicode

Data type Boolean

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

MachineName

Data type String

  MaximumFileSize

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.’

MaximumQueueSize

Data type UInt32

Name

Data type String

A unique identifier for this instance

  Text

Data type String

Message to be inserted into the log file

Methods

Examples

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).

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin