fun logDetectedLogFormat()

in src/main/kotlin/com/intellij/ideolog/statistics/IdeologUsagesCollector.kt [39:48]


  fun logDetectedLogFormat(logFileFormat: LogFileFormat?) {
    val logFileFormatAllowedValue = when (val logFileFormatName = logFileFormat?.myRegexLogParser?.otherParsingSettings?.name) {
      null -> AllowedLogFileFormat.UNDETECTED
      in LogFileFormatValues.phpValues -> AllowedLogFileFormat.valueOf(logFileFormatName.uppercase(Locale.getDefault()))
      else -> AllowedLogFileFormat.CUSTOM
    }
    DETECTED_LOG_FILE_FORMAT.log(
      LOG_FILE_FORMAT_FIELD.with(logFileFormatAllowedValue.value)
    )
  }