shouldLog method
Determines if a log entry should be emitted based on sampling rules.
Implementation
@override
bool shouldLog(LogEntry entry) {
final key = entry.category ?? 'default';
final count = (_counters[key] ?? 0) + 1;
_counters[key] = count;
return count % sampleRate == 0;
}