本文整理汇总了Golang中github.com/tychoish/grip/message.ConvertToComposer函数的典型用法代码示例。如果您正苦于以下问题:Golang ConvertToComposer函数的具体用法?Golang ConvertToComposer怎么用?Golang ConvertToComposer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ConvertToComposer函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: Alert
func (g *Grip) Alert(msg interface{}) {
g.sender.Send(level.Alert, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例2: AlertFatal
func (g *Grip) AlertFatal(msg interface{}) {
g.sendFatal(level.Alert, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例3: CriticalPanic
func (g *Grip) CriticalPanic(msg interface{}) {
g.sendPanic(level.Critical, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例4: EmergencyFatal
func (g *Grip) EmergencyFatal(msg interface{}) {
g.sendFatal(level.Emergency, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例5: DefaultWhen
func (g *Grip) DefaultWhen(conditional bool, m interface{}) {
g.conditionalSend(g.sender.DefaultLevel(), conditional, message.ConvertToComposer(m))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:when.go
示例6: AlertWhen
func (g *Grip) AlertWhen(conditional bool, m interface{}) {
g.conditionalSend(level.Alert, conditional, message.ConvertToComposer(m))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:when.go
示例7: Debug
func (g *Grip) Debug(msg interface{}) {
g.sender.Send(level.Debug, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例8: InfoWhen
func (g *Grip) InfoWhen(conditional bool, msg interface{}) {
g.conditionalSend(level.Info, conditional, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:when.go
示例9: Notice
func (g *Grip) Notice(msg interface{}) {
g.sender.Send(level.Notice, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例10: Info
func (g *Grip) Info(msg interface{}) {
g.sender.Send(level.Info, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例11: Warning
func (g *Grip) Warning(msg interface{}) {
g.sender.Send(level.Warning, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例12: ErrorPanic
func (g *Grip) ErrorPanic(msg interface{}) {
g.sendFatal(level.Error, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例13: Error
func (g *Grip) Error(msg interface{}) {
g.sender.Send(level.Error, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例14: ErrorFatalWhen
func (g *Grip) ErrorFatalWhen(conditional bool, msg interface{}) {
g.conditionalSendFatal(level.Error, conditional, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:when.go
示例15: Send
func (g *Grip) Send(l level.Priority, msg interface{}) {
g.sender.Send(l, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例16: WarningWhen
func (g *Grip) WarningWhen(conditional bool, m interface{}) {
g.conditionalSend(level.Warning, conditional, message.ConvertToComposer(m))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:when.go
示例17: Default
func (g *Grip) Default(msg interface{}) {
g.sender.Send(g.sender.DefaultLevel(), message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例18: SendWhen
func (g *Grip) SendWhen(conditional bool, l level.Priority, m interface{}) {
g.conditionalSend(l, conditional, message.ConvertToComposer(m))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:when.go
示例19: Emergency
func (g *Grip) Emergency(msg interface{}) {
g.sender.Send(level.Emergency, message.ConvertToComposer(msg))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:general.go
示例20: EmergencyFatalWhen
func (g *Grip) EmergencyFatalWhen(conditional bool, m interface{}) {
g.conditionalSendFatal(level.Emergency, conditional, message.ConvertToComposer(m))
}
开发者ID:tychoish,项目名称:grip,代码行数:3,代码来源:when.go
注:本文中的github.com/tychoish/grip/message.ConvertToComposer函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论