func (c *Config) LogFwdSyslog() (*syslog.RawConfig, bool) {
	partial := false
	var lfCfg syslog.RawConfig

	if s, ok := c.defined[LogForwardEnabled]; ok {
		partial = true
		lfCfg.Enabled = s.(bool)
	}

	if s, ok := c.defined[LogFwdSyslogHost]; ok && s != "" {
		partial = true
		lfCfg.Host = s.(string)
	}

	if s, ok := c.defined[LogFwdSyslogCACert]; ok && s != "" {
		partial = true
		lfCfg.CACert = s.(string)
	}

	if s, ok := c.defined[LogFwdSyslogClientCert]; ok && s != "" {
		partial = true
		lfCfg.ClientCert = s.(string)
	}

	if s, ok := c.defined[LogFwdSyslogClientKey]; ok && s != "" {
		partial = true
		lfCfg.ClientKey = s.(string)
	}

	if !partial {
		return nil, false
	}
	return &lfCfg, true
}
// LogFwdSyslog returns the syslog forwarding config.
LogFwdSyslog returns the syslog forwarding config.
// LogFwdSyslog returns the syslog forwarding config .
func (c *Config) LogFwdSyslog() (*syslog.RawConfig, bool) {
	partial := false
	var lfCfg syslog.RawConfig
	if s, ok := c.defined[LogForwardEnabled]; ok {
		partial = true
		lfCfg.Enabled = s.(bool)
	}
	if s, ok := c.defined[LogFwdSyslogHost]; ok && s != "" {
		partial = true
		lfCfg.Host = s.(string)
	}
	if s, ok := c.defined[LogFwdSyslogCACert]; ok && s != "" {
		partial = true
		lfCfg.CACert = s.(string)
	}
	if s, ok := c.defined[LogFwdSyslogClientCert]; ok && s != "" {
		partial = true
		lfCfg.ClientCert = s.(string)
	}
	if s, ok := c.defined[LogFwdSyslogClientKey]; ok && s != "" {
		partial = true
		lfCfg.ClientKey = s.(string)
	}
	if !partial {
		return nil, false
	}
	return &lfCfg, true
}
func ( c * Config ) LogFwdSyslog ( ) ( * syslog . RawConfig , bool ) { partial := false var lfCfg syslog . RawConfig if s , ok := c . defined [ LogForwardEnabled ] ; ok { partial = true lfCfg . Enabled = s . ( bool ) } if s , ok := c . defined [ LogFwdSyslogHost ] ; ok && s != " " { partial = true lfCfg . Host = s . ( string ) } if s , ok := c . defined [ LogFwdSyslogCACert ] ; ok && s != " " { partial = true lfCfg . CACert = s . ( string ) } if s , ok := c . defined [ LogFwdSyslogClientCert ] ; ok && s != " " { partial = true lfCfg . ClientCert = s . ( string ) } if s , ok := c . defined [ LogFwdSyslogClientKey ] ; ok && s != " " { partial = true lfCfg . ClientKey = s . ( string ) } if ! partial { return nil , false } return & lfCfg , true }
LogFwdSyslog returns the syslog forwarding config.
LogFwdSyslog returns the syslog forwarding config .