Skip to content

Commit

Permalink
Merge pull request #6 from kylinroc/master
Browse files Browse the repository at this point in the history
Update platform requirements
  • Loading branch information
chrisaljoudi authored Mar 17, 2020
2 parents f6b968b + c78962b commit 82e9145
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription

let package = Package(
name: "LoggingOSLog",
platforms: [.iOS("10.0"), .macOS("10.12"), .tvOS("10.0"), .watchOS("3.0")],
platforms: [.macOS(.v10_12), .iOS(.v10), .tvOS(.v10), .watchOS(.v3)],
products: [
.library(
name: "LoggingOSLog",
Expand Down
8 changes: 0 additions & 8 deletions Sources/LoggingOSLog/LoggingOSLog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import Foundation
import Logging
import os

@available(OSX 10.12, *)
@available(iOS 10.0, *)
@available(tvOS 10.0, *)
@available(watchOS 3.0, *)
public struct LoggingOSLog: LogHandler {
public var logLevel: Logger.Level = .info
public let label: String
Expand Down Expand Up @@ -64,10 +60,6 @@ public struct LoggingOSLog: LogHandler {
}
}

@available(OSX 10.12, *)
@available(iOS 10.0, *)
@available(tvOS 10.0, *)
@available(watchOS 3.0, *)
extension OSLogType {
static func from(loggerLevel: Logger.Level) -> Self {
switch loggerLevel {
Expand Down

0 comments on commit 82e9145

Please sign in to comment.