fix: move tifoundationlogger to it's own folder

This commit is contained in:
Nikita Semenov 2023-07-07 15:39:11 +03:00
parent da527644a7
commit 85b206bf18
4 changed files with 33 additions and 3 deletions

View File

@ -32,7 +32,7 @@ where SourceStorage: CodableKeyValueStorage, TargetStorage: CodableKeyValueStora
public init(sourceStorage: SourceStorage,
targetStorage: TargetStorage,
errorLogger: ErrorLogger = TIFoundationLogger(category: "BaseCodableMigratingStorageContainer")) {
errorLogger: ErrorLogger) {
self.errorLogger = errorLogger

View File

@ -36,7 +36,7 @@ where SourceStorage.ErrorType == TargetStorage.ErrorType,
public init(sourceStorage: SourceStorage,
targetStorage: TargetStorage,
errorLogger: ErrorLogger = TIFoundationLogger(category: "MigratingSingleValueStorage")) {
errorLogger: ErrorLogger) {
self.sourceStorage = sourceStorage
self.targetStorage = targetStorage

View File

@ -0,0 +1,30 @@
//
// Copyright (c) 2023 Touch Instinct
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
import TILogging
import os
public final class TIFoundationLogger: DefaultOSLogErrorLogger {
public init(category: String) {
super.init(log: OSLog(subsystem: "TIFoundationUtils", category: category))
}
}

View File

@ -19,7 +19,7 @@ Pod::Spec.new do |s|
s.exclude_files = s.name + '/*.app', '**/NefPlaygroundSupport.swift'
end
s.dependency 'TISwiftUtils', s.version.to_s
s.dependency 'TILogging', s.version.to_s
s.dependency 'TISwiftUtils', s.version.to_s
s.framework = 'Foundation'
end