예제 #1
0
파일: main.go 프로젝트: nkhuyu/htc2015
func main() {
	flag.Parse()
	spacelog.Setup("run-tests", spacelog.SetupConfig{
		Output: "stderr",
		Format: "{{.Message}}"})
	err := Main()
	if err != nil {
		logger.Errore(err)
		os.Exit(1)
	}
}
예제 #2
0
// SetupWithFacility is deprecated and will be removed soon. Please
// configure facility through the facility flag option.
func SetupWithFacility(procname string,
	facility spacelog.SyslogPriority) error {
	config_copy := config
	config_copy.Facility = int(facility)
	return spacelog.Setup(procname, config_copy)
}
예제 #3
0
// Setup calls spacelog.Setup with a flag-configured config struct
// It's pretty useless to call this method without parsing flags first, via
// flagfile.Load()
func Setup(procname string) error {
	return spacelog.Setup(procname, config)
}