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