本文整理汇总了Golang中github.com/tychoish/grip/message.NewFormatedMessage函数的典型用法代码示例。如果您正苦于以下问题:Golang NewFormatedMessage函数的具体用法?Golang NewFormatedMessage怎么用?Golang NewFormatedMessage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewFormatedMessage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: AlertWhenf
func (g *Grip) AlertWhenf(conditional bool, msg string, args ...interface{}) {
g.AlertWhen(conditional, message.NewFormatedMessage(msg, args...))
}
示例2: SendWhenf
func (g *Grip) SendWhenf(conditional bool, l level.Priority, msg string, args ...interface{}) {
g.SendWhen(conditional, l, message.NewFormatedMessage(msg, args...))
}
示例3: EmergencyFatalWhenf
func (g *Grip) EmergencyFatalWhenf(conditional bool, msg string, args ...interface{}) {
g.conditionalSendFatal(level.Emergency, conditional, message.NewFormatedMessage(msg, args...))
}
示例4: AlertFatalf
func (g *Grip) AlertFatalf(msg string, a ...interface{}) {
g.sendFatal(level.Alert, message.NewFormatedMessage(msg, a...))
}
示例5: ErrorPanicWhenf
func (g *Grip) ErrorPanicWhenf(conditional bool, msg string, args ...interface{}) {
g.conditionalSendPanic(level.Error, conditional, message.NewFormatedMessage(msg, args...))
}
示例6: EmergencyFatalf
func (g *Grip) EmergencyFatalf(msg string, a ...interface{}) {
g.sendFatal(level.Emergency, message.NewFormatedMessage(msg, a...))
}
示例7: AlertPanicf
func (g *Grip) AlertPanicf(msg string, a ...interface{}) {
g.sendPanic(level.Alert, message.NewFormatedMessage(msg, a...))
}
示例8: Sendf
func (g *Grip) Sendf(l level.Priority, msg string, a ...interface{}) {
g.sender.Send(l, message.NewFormatedMessage(msg, a...))
}
示例9: Defaultf
func (g *Grip) Defaultf(msg string, a ...interface{}) {
g.sender.Send(g.sender.DefaultLevel(), message.NewFormatedMessage(msg, a...))
}
示例10: Infof
func (g *Grip) Infof(msg string, a ...interface{}) {
g.sender.Send(level.Info, message.NewFormatedMessage(msg, a...))
}
示例11: Debugf
func (g *Grip) Debugf(msg string, a ...interface{}) {
g.sender.Send(level.Debug, message.NewFormatedMessage(msg, a...))
}
示例12: Noticef
func (g *Grip) Noticef(msg string, a ...interface{}) {
g.sender.Send(level.Notice, message.NewFormatedMessage(msg, a...))
}
示例13: ErrorPanicf
func (g *Grip) ErrorPanicf(msg string, a ...interface{}) {
g.sendPanic(level.Error, message.NewFormatedMessage(msg, a...))
}
示例14: ErrorFatalf
func (g *Grip) ErrorFatalf(msg string, a ...interface{}) {
g.sendFatal(level.Error, message.NewFormatedMessage(msg, a...))
}
示例15: CriticalPanicf
func (g *Grip) CriticalPanicf(msg string, a ...interface{}) {
g.sendPanic(level.Critical, message.NewFormatedMessage(msg, a...))
}