Ejemplo n.º 1
0
func (s *Service) NewStaticLevelWriter(l Level) io.Writer {
	return wlog.NewStaticLevelWriter(s.f, wlog.Level(l))
}
Ejemplo n.º 2
0
func (l TestLogService) NewStaticLevelWriter(level logging.Level) io.Writer {
	return wlog.NewStaticLevelWriter(os.Stderr, wlog.Level(level))
}
Ejemplo n.º 3
0
func (s *Service) NewStaticLevelLogger(prefix string, flag int, l Level) *log.Logger {
	return log.New(wlog.NewStaticLevelWriter(s.f, wlog.Level(l)), prefix, flag)
}
Ejemplo n.º 4
0
func (l TestLogService) NewStaticLevelLogger(prefix string, flag int, level logging.Level) *log.Logger {
	return log.New(wlog.NewStaticLevelWriter(os.Stderr, wlog.Level(level)), prefix, flag)
}