예제 #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),
	}
}