예제 #1
0
        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;
        }
예제 #2
0
        public Rfc3164(Facility facility, LogLevelSeverityConfig logLevelSeverityConfig, Rfc3164Config rfc3164Config, EnforcementConfig enforcementConfig) : base(facility, logLevelSeverityConfig, enforcementConfig)
        {
            hostnamePolicySet     = new PlainHostnamePolicySet(enforcementConfig);
            tagPolicySet          = new TagPolicySet(enforcementConfig);
            plainContentPolicySet = new PlainContentPolicySet(enforcementConfig);
            asciiMessagePolicy    = new AsciiMessagePolicy(enforcementConfig);

            outputPri      = rfc3164Config.OutputPri;
            outputHeader   = rfc3164Config.OutputHeader;
            hostnameLayout = rfc3164Config.Hostname;
            tagLayout      = rfc3164Config.Tag;
        }