Beispiel #1
0
        /// <summary>Builds a new instance of the MessageBuilderConfig class</summary>
        public MessageBuilderConfig()
        {
            rfc                      = RfcNumber.Rfc5424;
            rfc3164                  = new Rfc3164Config();
            rfc3164PropsChanged      = (sender, args) => OnPropertyChanged(nameof(Rfc3164));
            rfc3164.PropertyChanged += rfc3164PropsChanged;

            rfc5424                  = new Rfc5424Config();
            rfc5424PropsChanged      = (sender, args) => OnPropertyChanged(nameof(Rfc5424));
            rfc5424.PropertyChanged += rfc5424PropsChanged;
        }
Beispiel #2
0
 public Rfc5424(Facility facility, Rfc5424Config rfc5424Config, EnforcementConfig enforcementConfig) : base(facility, enforcementConfig)
 {
     version = DefaultVersion;
     hostnameLayout = rfc5424Config.Hostname;
     appNameLayout = rfc5424Config.AppName;
     procIdLayout = NilValue;
     msgIdLayout = NilValue;
     structuredData = new StructuredData(rfc5424Config.StructuredData, enforcementConfig);
     disableBom = rfc5424Config.DisableBom;
     hostnamePolicySet = new FqdnHostnamePolicySet(enforcementConfig, rfc5424Config.DefaultHostname);
     appNamePolicySet = new AppNamePolicySet(enforcementConfig, rfc5424Config.DefaultAppName);
     procIdPolicySet = new ProcIdPolicySet(enforcementConfig);
     msgIdPolicySet = new MsgIdPolicySet(enforcementConfig);
     utf8MessagePolicy = new Utf8MessagePolicy(enforcementConfig);
 }