mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
28 lines
461 B
Swift
28 lines
461 B
Swift
//
|
|
// LogItem.swift
|
|
// RSCore
|
|
//
|
|
// Created by Brent Simmons on 11/14/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct LogItem {
|
|
|
|
public enum ItemType {
|
|
case debug, notification, warning, error
|
|
}
|
|
|
|
public let type: ItemType
|
|
public let message: String
|
|
public let date: Date
|
|
|
|
public init(type: ItemType, message: String) {
|
|
|
|
self.type = type
|
|
self.message = message
|
|
self.date = Date()
|
|
}
|
|
}
|