func (l *Logger) HasFilter(flag, filterName string) bool {
	l.Lock()
	defer l.Unlock()

	if l.Filters == nil {
		return false
	}
	filters, ok := l.Filters[flag]
	if !ok {
		return false
	}
	_, ok = filters[filterName]
	return ok
}
// HasFilter returns if a logger has a given filter by name.
HasFilter returns if a logger has a given filter by name.
// HasFilter returns if a logger has a given filter by name .
func (l *Logger) HasFilter(flag, filterName string) bool {
	l.Lock()
	defer l.Unlock()
	if l.Filters == nil {
		return false
	}
	filters, ok := l.Filters[flag]
	if !ok {
		return false
	}
	_, ok = filters[filterName]
	return ok
}
func ( l * Logger ) HasFilter ( flag , filterName string ) bool { l . Lock ( ) defer l . Unlock ( ) if l . Filters == nil { return false } filters , ok := l . Filters [ flag ] if ! ok { return false } _ , ok = filters [ filterName ] return ok }
HasFilter returns if a logger has a given filter by name.
HasFilter returns if a logger has a given filter by name .