Esempio n. 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="source">The SIF node that logged this entry.</param>
 ///<param name="logLevel">The level of the log entry herein described.</param>
 ///<param name="sifLogEntryHeader">This is a copy of the SIF_Event/SIF_Header in the message that added this SIF_LogEntry to the zone. This copy facilitates querying log entries with regard to source, time, destination, etc.</param>
 ///<param name="sifDesc">A textual description of the error.</param>
 ///
 public SIF_LogEntry( LogSource source, LogLevel logLevel, SIF_LogEntryHeader sifLogEntryHeader, string sifDesc )
     : base(Adk.SifVersion, InfraDTD.SIF_LOGENTRY)
 {
     this.SetSource( source );
     this.SetLogLevel( logLevel );
     this.SIF_LogEntryHeader = sifLogEntryHeader;
     this.SIF_Desc = sifDesc;
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the value of the <c>LogLevel</c> attribute.
 /// </summary>
 /// <param name="val">A LogLevel object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The level of the log entry herein described."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetLogLevel( LogLevel val )
 {
     SetField( InfraDTD.SIF_LOGENTRY_LOGLEVEL, val );
 }