Share via


System.ApplicationLog.GenericLogEntryData

Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager

Defines the data type for all generic log entry data items that are passed within a workflow.

Remarks

All generic log entry data item types are defined in accordance with the System.ApplicationLog.GenericLogEntryData schema. Workflow modules that take generic log entry data as input will define their input data type as System.ApplicationLog.GenericLogEntryData.

System.ApplicationLog.GenericLogEntryData has the following structure:

<DataItem type="System.ApplicationLog.GenericLogEntryData" time="2008-03-11T03:08:55.0343534-08:00" sourceHealthServiceId="0A0800A0-A802-E90B-6045-D961D516CA78">
  <LogFileDirectory></LogFileDirectory>
  <LogFileType></LogFileType>
  <LogFileName></LogFileName>
  <Params>
     <Param></Param>
     <Param></Param>
  </Params>
</DataItem>

Remarks

The generic log entry data item can contain only one parameter. However, when the data item is expressing a generic CSV log entry, you can expect as many parameters as are required for the comma delimited values within each log entry.

For example, the following data item would represent a generic log data entry. The actual entry in the log file would be This is a full line of text from the log file.

<DataItem type="System.ApplicationLog.GenericLogEntryData" time="2008-10-22T18:05:50.7802742-07:00" sourceHealthServiceId="B0BE86FA-56AD-1F2E-EE87-8DF72FC53818">
  <LogFileDirectory>C:\Program Files\ApplicationX</LogFileDirectory>
  <LogFileType>Generic Log File Format</LogFileType>
  <LogFileName>C:\Program Files\ApplicationX\test1.log</LogFileName>
  <Params>
    <Param><![CDATA[This is a full line of text from the log file]]></Param>
  </Params>
</DataItem>

The next code sample illustrates a data time that is expressing a generic CSV log data entry. The actual entry in the log file would be column1, column2.

<DataItem type="System.ApplicationLog.GenericLogEntryData" time="2008-10-22T18:05:50.7802742-07:00" sourceHealthServiceId="B0BE86FA-56AD-1F2E-EE87-8DF72FC53818">
  <LogFileDirectory>C:\Program Files\ApplicationX</LogFileDirectory>
  <LogFileType>Generic Log File Format</LogFileType>
  <LogFileName>C:\Program Files\ApplicationX\test1.log</LogFileName>
  <Params>
    <Param><![CDATA[column1]]></Param>
    <Param><![CDATA[column2]]></Param>
  </Params>
</DataItem>

See Also

Reference

System.ApplicationLog.HTTPErrorLogEntryData
System.ApplicationLog.InternetLogEntryData
System.ApplicationLog.SysLogData
System.BaseData