func (l *LogService) NewStaticLevelLogger(prefix string, flag int, level wlog.Level) *log.Logger {
	return log.New(wlog.NewStaticLevelWriter(os.Stderr, level), prefix, flag)
}
Exemple #2
0
func (s *Service) NewStaticLevelLogger(prefix string, flag int, l wlog.Level) *log.Logger {
	return log.New(wlog.NewStaticLevelWriter(s.f, l), prefix, flag)
}