Esempio n. 1
0
func (s *Service) NewStaticLevelWriter(l Level) io.Writer {
	return wlog.NewStaticLevelWriter(s.f, wlog.Level(l))
}
Esempio n. 2
0
func (l TestLogService) NewStaticLevelWriter(level logging.Level) io.Writer {
	return wlog.NewStaticLevelWriter(os.Stderr, wlog.Level(level))
}
Esempio 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)
}
Esempio 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)
}