Exemplo n.º 1
0
func Println(v ...interface{}) {
	sm.Sync(sm.Event(sm.InfoLevel, Prefix()+fmt.Sprintln(v...)))
}
Exemplo n.º 2
0
func Printf(format string, v ...interface{}) {
	sm.Sync(sm.Event(sm.InfoLevel, Prefix()+fmt.Sprintf(format, v...)))
}
Exemplo n.º 3
0
func Panicln(v ...interface{}) {
	message := fmt.Sprintln(v...)
	sm.Sync(sm.Event(sm.CriticalLevel, Prefix()+message))
	sm.Stop()
	panic(message)
}
Exemplo n.º 4
0
func Panicf(format string, v ...interface{}) {
	message := fmt.Sprintf(format, v...)
	sm.Sync(sm.Event(sm.CriticalLevel, Prefix()+message))
	sm.Stop()
	panic(message)
}
Exemplo n.º 5
0
func Fatalln(v ...interface{}) {
	sm.Sync(sm.Event(sm.CriticalLevel, Prefix()+fmt.Sprintln(v...)))
	sm.Stop()
	os.Exit(1)
}
Exemplo n.º 6
0
func Fatalf(format string, v ...interface{}) {
	sm.Sync(sm.Event(sm.CriticalLevel, Prefix()+fmt.Sprintf(format, v...)))
	sm.Stop()
	os.Exit(1)
}