Ejemplo n.º 1
0
func (l *LogService) NewStaticLevelLogger(prefix string, flag int, level wlog.Level) *log.Logger {
	return log.New(wlog.NewStaticLevelWriter(os.Stderr, level), prefix, flag)
}
Ejemplo n.º 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)
}