示例#1
0
文件: app.go 项目: jkotrlik/salsaflow
func Init(force bool) error {
	// Set up logging.
	log.SetV(log.MustStringToLevel(LogFlag.Value()))

	// Make sure the repo is initialised.
	if err := repo.Init(force); err != nil {
		return err
	}

	return nil
}
示例#2
0
func InitLogging() {
	// Set up logging.
	log.SetV(log.MustStringToLevel(appflags.FlagLog.Value()))
}