Example #1
0
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)
	}
}
Example #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)
}
Example #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)
}