func (l *Logger) Filter(flag, filterName string, filter Filter) {
	l.Lock()
	defer l.Unlock()

	if l.Filters == nil {
		l.Filters = make(map[string]map[string]Filter)
	}
	if l.Filters[flag] == nil {
		l.Filters[flag] = make(map[string]Filter)
	}
	l.Filters[flag][filterName] = filter
}
// Filter adds a given filter for a given flag.
Filter adds a given filter for a given flag.
// Filter adds a given filter for a given flag .
func (l *Logger) Filter(flag, filterName string, filter Filter) {
	l.Lock()
	defer l.Unlock()
	if l.Filters == nil {
		l.Filters = make(map[string]map[string]Filter)
	}
	if l.Filters[flag] == nil {
		l.Filters[flag] = make(map[string]Filter)
	}
	l.Filters[flag][filterName] = filter
}
func ( l * Logger ) Filter ( flag , filterName string , filter Filter ) { l . Lock ( ) defer l . Unlock ( ) if l . Filters == nil { l . Filters = make ( map [ string ] map [ string ] Filter ) } if l . Filters [ flag ] == nil { l . Filters [ flag ] = make ( map [ string ] Filter ) } l . Filters [ flag ] [ filterName ] = filter }
Filter adds a given filter for a given flag.
Filter adds a given filter for a given flag .