anchor.diff:        if (entity is File) {
           var file = entity as File;
           logCount += 1;
  -        logFileWithMinDate = path.basename(file.path).compareTo(path.basename(logFileWithMinDate.path))<0 ? file : logFileWithMinDate;
  +        logFileWithMinDate = path
  +                    .basename(file.path)
  +                    .compareTo(path.basename(logFileWithMinDate.path)) <
  +                0
  +            ? file
  +            : logFileWithMinDate;
         }
       }
       if (logCount > _MAX_LOG_FILES_COUNT) {
  
positive.code:   static IOSink __logSink;
    static final Glob _logGlob = Glob('*.log');
  
    static Future<void> init() async {
      WidgetsFlutterBinding.ensureInitialized();
      _logDirectoryPath = (await getApplicationDocumentsDirectory()).path;
      Logger.root.level = Level.INFO; // defaults to Level.INFO
      Logger.root.onRecord.listen((record) {
        LoggingService.log('${record.time.toUtc().toIso8601String()} ${record.level.name} [${record.loggerName}]: ${record.message}');
      });
    }
  
    static IOSink get _logSink {
      // log file name format is yyyy-MM-dd.log
      var logFileName =
          '${DateTime.now().toUtc().toIso8601String().substring(0, 10)}.log';
      if (logFileName != _logFileName) {
        _flushCloseSink(__logSink);
        _logFileName = logFileName;
  
negative.code: 
  class LoggingService {
    static const _MAX_LOG_FILES_COUNT = 7;
    // The ISO8601 format used by DateTime is yyyy-MM-ddTHH:mm:ss.mmmuuuZ
    static const _ISO8601_INDEX_DAY = 10;
  
    static String _logDirectoryPath;
    static String _logFileName;
  