public Rfc3164(Facility facility, Rfc3164Config rfc3164Config, EnforcementConfig enforcementConfig) : base(facility, enforcementConfig)
        {
            hostnamePolicySet = new PlainHostnamePolicySet(enforcementConfig);
            tagPolicySet = new TagPolicySet(enforcementConfig);
            plainContentPolicySet = new PlainContentPolicySet(enforcementConfig);
            asciiMessagePolicy = new AsciiMessagePolicy(enforcementConfig);

            hostnameLayout = rfc3164Config.Hostname;
            tagLayout = rfc3164Config.Tag;
        }
Exemple #2
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;
        }