init()

in Sources/CrashReporter2/LogParser.swift [35:58]


    init(blockName: String) {
        if blockName.hasPrefix("Memory Status(bytes):") {
            self.blockName = "mem_status"
        } else if blockName.hasPrefix("Exception Category:") {
            self.blockName = "exception_category"
        } else if blockName.hasPrefix("Thread ") && !blockName.hasSuffix("Thread State:") {
            self.blockName = "thread_list"
        } else if blockName.hasPrefix("Thread ") && blockName.hasSuffix("Thread State:") {
            self.blockName = "thread_state"
        } else if blockName.hasPrefix("Storage Status(bytes):") {
            self.blockName = "storage_status"
        } else if blockName.hasPrefix("Extra Information:") {
            self.blockName = "extra_information"
        } else {
            var name = blockName.trimmingCharacters(in: .whitespacesAndNewlines)
            if name.suffix(1) == ":" {
                name = String(name.prefix(name.count - 1))
            }
            name = name.replacingOccurrences(of: " ", with: "_")
            self.blockName = name.lowercased()
        }
        
        self.content = ""
    }