package bootstrap import ( "github.com/runningwater/gohub/pkg/config" "github.com/runningwater/gohub/pkg/logger" ) func SetupLogger() { // 这里可以添加日志的初始化代码 // 例如,设置日志级别、输出格式等 // 使用 logrus、zap 等第三方库进行日志处理 logger.Init( config.GetString("log.filename"), config.GetInt("log.max_size"), config.GetInt("log.max_backup"), config.GetInt("log.max_age"), config.GetBool("log.compress"), config.GetString("log.type"), config.GetString("log.level"), ) }