// WriteFilter writes to only writers that have filter for the module.
WriteFilter writes to only writers that have filter for the module.
// WriteFilter writes to only writers that have filter for the module .
func (t *multiWriter) WriteFilter(p []byte, module string) (n int, err error) {
	t.RLock()
	defer t.RUnlock()
	for k, w := range t.writers {
		if writerModules := t.writersModules[k]; writerModules != nil {
			if _, exist := writerModules[module]; !exist {
				continue
			}
		}
		n, err = write(w, p)
		if err != nil {
			return
		}
	}
	return len(p), nil
}
func ( t * multiWriter ) WriteFilter ( p [ ] byte , module string ) ( n int , err error ) { t . RLock ( ) defer t . RUnlock ( ) for k , w := range t . writers { if writerModules := t . writersModules [ k ] ; writerModules != nil { if _ , exist := writerModules [ module ] ; ! exist { continue } } n , err = write ( w , p ) if err != nil { return } } return len ( p ) , nil }
WriteFilter writes to only writers that have filter for the module.
WriteFilter writes to only writers that have filter for the module .