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