func (g *Glg) SetWriter(writer io.Writer) *Glg {
	if writer == nil {
		return g
	}

	g.logger.Range(func(key, val interface{}) bool {
		l := val.(*logger)
		l.writer = writer
		l.updateMode()
		g.logger.Store(key.(LEVEL), l)
		return true
	})

	return g
}
func (g *Glg) SetWriter(writer io.Writer) *Glg {
	if writer == nil {
		return g
	}

	g.logger.Range(func(key, val interface{}) bool {
		l := val.(*logger)
		l.writer = writer
		l.updateMode()
		g.logger.Store(key.(LEVEL), l)
		return true
	})

	return g
}
func ( g * Glg ) SetWriter ( writer io . Writer ) * Glg { if writer == nil { return g } g . logger . Range ( func ( key , val interface { } ) bool { l := val . ( * logger ) l . writer = writer l . updateMode ( ) g . logger . Store ( key . ( LEVEL ) , l ) return true } ) return g }
// SetWriter sets writer to glg std writers
SetWriter sets writer to glg std writers