예제 #1
0
파일: when.go 프로젝트: tychoish/grip
func (g *Grip) AlertWhenf(conditional bool, msg string, args ...interface{}) {
	g.AlertWhen(conditional, message.NewFormatedMessage(msg, args...))
}
예제 #2
0
파일: when.go 프로젝트: tychoish/grip
func (g *Grip) SendWhenf(conditional bool, l level.Priority, msg string, args ...interface{}) {
	g.SendWhen(conditional, l, message.NewFormatedMessage(msg, args...))
}
예제 #3
0
파일: when.go 프로젝트: tychoish/grip
func (g *Grip) EmergencyFatalWhenf(conditional bool, msg string, args ...interface{}) {
	g.conditionalSendFatal(level.Emergency, conditional, message.NewFormatedMessage(msg, args...))
}
예제 #4
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) AlertFatalf(msg string, a ...interface{}) {
	g.sendFatal(level.Alert, message.NewFormatedMessage(msg, a...))
}
예제 #5
0
파일: when.go 프로젝트: tychoish/grip
func (g *Grip) ErrorPanicWhenf(conditional bool, msg string, args ...interface{}) {
	g.conditionalSendPanic(level.Error, conditional, message.NewFormatedMessage(msg, args...))
}
예제 #6
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) EmergencyFatalf(msg string, a ...interface{}) {
	g.sendFatal(level.Emergency, message.NewFormatedMessage(msg, a...))
}
예제 #7
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) AlertPanicf(msg string, a ...interface{}) {
	g.sendPanic(level.Alert, message.NewFormatedMessage(msg, a...))
}
예제 #8
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) Sendf(l level.Priority, msg string, a ...interface{}) {
	g.sender.Send(l, message.NewFormatedMessage(msg, a...))
}
예제 #9
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) Defaultf(msg string, a ...interface{}) {
	g.sender.Send(g.sender.DefaultLevel(), message.NewFormatedMessage(msg, a...))
}
예제 #10
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) Infof(msg string, a ...interface{}) {
	g.sender.Send(level.Info, message.NewFormatedMessage(msg, a...))
}
예제 #11
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) Debugf(msg string, a ...interface{}) {
	g.sender.Send(level.Debug, message.NewFormatedMessage(msg, a...))
}
예제 #12
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) Noticef(msg string, a ...interface{}) {
	g.sender.Send(level.Notice, message.NewFormatedMessage(msg, a...))
}
예제 #13
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) ErrorPanicf(msg string, a ...interface{}) {
	g.sendPanic(level.Error, message.NewFormatedMessage(msg, a...))
}
예제 #14
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) ErrorFatalf(msg string, a ...interface{}) {
	g.sendFatal(level.Error, message.NewFormatedMessage(msg, a...))
}
예제 #15
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) CriticalPanicf(msg string, a ...interface{}) {
	g.sendPanic(level.Critical, message.NewFormatedMessage(msg, a...))
}
예제 #16
0
파일: general.go 프로젝트: tychoish/grip
func (g *Grip) CriticalFatalf(msg string, a ...interface{}) {
	g.sender.Send(level.Critical, message.NewFormatedMessage(msg, a...))
}