func (f *Flags) Config() zap.Config {
	config := f.config()

	if v, ok := f.LookupLevel(); ok {
		config.Level = zap.NewAtomicLevelAt(v)
	}

	if v, ok := f.LookupStackTrace(); ok {
		config.DisableStacktrace = !v
	}

	if v, ok := f.LookupDateFormat(); ok {
		if len(v) > 0 {
			config.EncoderConfig.EncodeTime = ZapTimeEncoder(v)
		} else {
			config.EncoderConfig.TimeKey = ""
		}
	}

	if v, ok := f.LookupPaths(); ok {
		config.OutputPaths = v
	}

	if v, ok := f.LookupErrPaths(); ok {
		config.ErrorOutputPaths = v
	}

	if v := f.SamplingConfig(); v != nil {
		config.Sampling = v
	}

	return config
}
// Config returns zap.Config initialized by f's values.
//
// Following values affects the result.
//   f.Development()
//   f.LookupLevel()
//   f.LookupStackTrace()
//   f.LookupDateFormat()
//   f.LookupPaths()
//   f.LookupErrPaths()
//   f.SamplingConfig()
Config returns zap.Config initialized by f's values.

Following values affects the result.
// Config returns zap . Config initialized by f ' s values . // // Following values affects the result . // f . Development () // f . LookupLevel () // f . LookupStackTrace () // f . LookupDateFormat () // f . LookupPaths () // f . LookupErrPaths () // f . SamplingConfig ()
func (f *Flags) Config() zap.Config {
	config := f.config()
	if v, ok := f.LookupLevel(); ok {
		config.Level = zap.NewAtomicLevelAt(v)
	}
	if v, ok := f.LookupStackTrace(); ok {
		config.DisableStacktrace = !v
	}
	if v, ok := f.LookupDateFormat(); ok {
		if len(v) > 0 {
			config.EncoderConfig.EncodeTime = ZapTimeEncoder(v)
		} else {
			config.EncoderConfig.TimeKey = ""
		}
	}
	if v, ok := f.LookupPaths(); ok {
		config.OutputPaths = v
	}
	if v, ok := f.LookupErrPaths(); ok {
		config.ErrorOutputPaths = v
	}
	if v := f.SamplingConfig(); v != nil {
		config.Sampling = v
	}
	return config
}
func ( f * Flags ) Config ( ) zap . Config { config := f . config ( ) if v , ok := f . LookupLevel ( ) ; ok { config . Level = zap . NewAtomicLevelAt ( v ) } if v , ok := f . LookupStackTrace ( ) ; ok { config . DisableStacktrace = ! v } if v , ok := f . LookupDateFormat ( ) ; ok { if len ( v ) > 0 { config . EncoderConfig . EncodeTime = ZapTimeEncoder ( v ) } else { config . EncoderConfig . TimeKey = " " } } if v , ok := f . LookupPaths ( ) ; ok { config . OutputPaths = v } if v , ok := f . LookupErrPaths ( ) ; ok { config . ErrorOutputPaths = v } if v := f . SamplingConfig ( ) ; v != nil { config . Sampling = v } return config }
Config returns zap.Config initialized by f's values.
Config returns zap . Config initialized by f ' s values .