示例#1
0
func (s *GripSuite) SetupTest() {
	s.grip.SetName(s.name)
	s.grip.SetSender(send.NewBootstrapLogger(s.grip.ThresholdLevel(), s.grip.DefaultLevel()))
}
示例#2
0
文件: logger.go 项目: tychoish/grip
// NewGrip takes the name for a logging instance and creates a new
// Grip instance with configured with a Bootstrap logging
// instance. The default level is "Notice" and the threshold level is
// "info."
func NewGrip(name string) *Grip {
	return &Grip{
		name:   name,
		sender: send.NewBootstrapLogger(level.Info, level.Notice),
	}
}