Skip to content

Commit

Permalink
♻️ Define logger subsystem in a single place
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkulman committed Nov 10, 2024
1 parent e755186 commit ac31d18
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 0 additions & 2 deletions sources/App/Sources/App/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ import Foundation
import OSLog

extension Logger {
private static var subsystem = Bundle.main.bundleIdentifier!

static let appFlow = Logger(subsystem: subsystem, category: "appFlow")
}
13 changes: 13 additions & 0 deletions sources/Core/Sources/Core/Logger.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// File.swift
// Core
//
// Created by Igor Kulman on 10.11.2024.
//

import Foundation
import OSLog

public extension Logger {
static let subsystem = Bundle.main.bundleIdentifier!
}
2 changes: 0 additions & 2 deletions sources/Features/Sources/Features/Feed/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ import Foundation
import OSLog

extension Logger {
private static var subsystem = Bundle.main.bundleIdentifier!

static let feed = Logger(subsystem: subsystem, category: "feed")
}

0 comments on commit ac31d18

Please sign in to comment.