Syslog STRUCTURED-DATA part configuration
 /// <summary>Builds a new instance of the Rfc5424 class</summary>
 public Rfc5424Config()
 {
     DefaultHostname = HostFqdn();
     DefaultAppName = Assembly.GetEntryAssembly().GetName().Name;
     Version = DefaultVersion;
     Hostname = DefaultHostname;
     AppName = DefaultAppName;
     ProcId = NilValue;
     MsgId = NilValue;
     StructuredData = new StructuredDataConfig();
     DisableBom = false;
 }
Beispiel #2
0
 /// <summary>Builds a new instance of the Rfc5424 class</summary>
 public Rfc5424Config()
 {
     Version                         = DefaultVersion;
     DefaultHostname                 = HostFqdn();
     hostname                        = DefaultHostname;
     DefaultAppName                  = UniversalAssembly.EntryAssembly().Name();
     appName                         = DefaultAppName;
     procId                          = NilValue;
     msgId                           = NilValue;
     structuredData                  = new StructuredDataConfig();
     structuredDataPropsChanged      = (sender, args) => OnPropertyChanged(nameof(StructuredData));
     structuredData.PropertyChanged += structuredDataPropsChanged;
     disableBom                      = false;
 }
 public StructuredData(StructuredDataConfig sdConfig, EnforcementConfig enforcementConfig)
 {
     fromEventProperties = sdConfig.FromEventProperties;
     sdElements = sdConfig.SdElements.Select(sdElementConfig => new SdElement(sdElementConfig, enforcementConfig)).ToList();
 }