func SetConfig(config zap.Config) error {
	config.Level = zap.NewAtomicLevelAt(zap.DebugLevel)
	logger, err := config.Build()
	if err != nil {
		return err
	}
	debugCore = logger.Core()
	config.Level = zap.NewAtomicLevelAt(ConsoleLevel)
	logger, err = config.Build()
	if err != nil {
		return err
	}
	mainCore = logger.Core()
	return nil
}
// SetConfig apply zap config.
//
// config level is ignored,
// change ConsoleLevel, SentryLevel and DebugLoggerName
// before SetConfig to specify log level.
SetConfig apply zap config.

config level is ignored,
change ConsoleLevel, SentryLevel and DebugLoggerName
before SetConfig to specify log level.
// SetConfig apply zap config . // // config level is ignored // change ConsoleLevel SentryLevel and DebugLoggerName // before SetConfig to specify log level .
func SetConfig(config zap.Config) error {
	config.Level = zap.NewAtomicLevelAt(zap.DebugLevel)
	logger, err := config.Build()
	if err != nil {
		return err
	}
	debugCore = logger.Core()
	config.Level = zap.NewAtomicLevelAt(ConsoleLevel)
	logger, err = config.Build()
	if err != nil {
		return err
	}
	mainCore = logger.Core()
	return nil
}
func SetConfig ( config zap . Config ) error { config . Level = zap . NewAtomicLevelAt ( zap . DebugLevel ) logger , err := config . Build ( ) if err != nil { return err } debugCore = logger . Core ( ) config . Level = zap . NewAtomicLevelAt ( ConsoleLevel ) logger , err = config . Build ( ) if err != nil { return err } mainCore = logger . Core ( ) return nil }
SetConfig apply zap config.
SetConfig apply zap config .