//loadDefaultConfig function with load the default configuration
loadDefaultConfig function with load the default configuration
// loadDefaultConfig function with load the default configuration
func loadDefaultConfig() *LogConfig {
	isAsync, _ := config.GetEnvAsBool("GC_LOG_ASYNC", false)
	errToStdOut, _ := config.GetEnvAsBool("GC_LOG_ERR_STDOUT", false)
	warnToStdOut, _ := config.GetEnvAsBool("GC_LOG_WARN_STDOUT", false)
	return &LogConfig{
		Format:      config.GetEnvAsString("GC_LOG_FMT", "text"),
		Async:       isAsync,
		DatePattern: config.GetEnvAsString("GC_LOG_TIME_FMT", time.RFC3339),
		DefaultLvl:  config.GetEnvAsString("GC_LOG_DEF_LEVEL", "INFO"),
		Writers: []*WriterConfig{
			{
				Console: &ConsoleConfig{
					WriteErrToStdOut:  errToStdOut,
					WriteWarnToStdOut: warnToStdOut,
				},
			},
		},
	}
}
func loadDefaultConfig ( ) * LogConfig { isAsync , _ := config . GetEnvAsBool ( " " , false ) errToStdOut , _ := config . GetEnvAsBool ( " " , false ) warnToStdOut , _ := config . GetEnvAsBool ( " " , false ) return & LogConfig { Format : config . GetEnvAsString ( " " , " " ) , Async : isAsync , DatePattern : config . GetEnvAsString ( " " , time . RFC3339 ) , DefaultLvl : config . GetEnvAsString ( " " , " " ) , Writers : [ ] * WriterConfig { { Console : & ConsoleConfig { WriteErrToStdOut : errToStdOut , WriteWarnToStdOut : warnToStdOut , } , } , } , } }
loadDefaultConfig function with load the default configuration
loadDefaultConfig function with load the default configuration