INNER CODE UNIT · Go

main

loggie-io/loggie · cmd/loggie/main.go:65

func main() {
	flag.Parse()
	// init logging configuration
	log.InitDefaultLogger()

	if err := subcmd.SwitchSubCommand(); err != nil {
		return
	}

	log.Info("version: %s", global.GetVersion())

	// set up signals, so we handle the first shutdown signal gracefully
	stopCh := signals.SetupSignalHandler()

	// Automatically set GOMAXPROCS to match Linux container CPU quota
	if _, err := maxprocs.Set(maxprocs.Logger(log.Debug)); err != nil {
		log.Fatal("set maxprocs error: %v", err)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…