Syslog STRUCTURED-DATA part configuration
Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public StructuredData(StructuredDataConfig sdConfig, EnforcementConfig enforcementConfig)
 {
     fromEventProperties = sdConfig.FromEventProperties;
     sdElements = sdConfig.SdElements.Select(sdElementConfig => new SdElement(sdElementConfig, enforcementConfig)).ToList();
 }