-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SkylerGodfrey/Fix-Print
Update to OSLog
- Loading branch information
Showing
9 changed files
with
186 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// LoggerExtensions.swift | ||
// PPPC Utility | ||
// | ||
// Created by Skyler Godfrey on 10/21/24. | ||
// Copyright © 2024 Jamf. All rights reserved. | ||
// | ||
|
||
// This extension simplifies the logger instance creation by calling the bundle Id | ||
// and pre-declaring categories. Currently the predefined categories match the | ||
// class name. | ||
|
||
import OSLog | ||
|
||
extension Logger { | ||
static let subsystem = Bundle.main.bundleIdentifier! | ||
static let TCCProfileViewController = Logger(subsystem: subsystem, category: "TCCProfileViewController") | ||
static let PPPCServicesManager = Logger(subsystem: subsystem, category: "PPPCServicesManager") | ||
static let Model = Logger(subsystem: subsystem, category: "Model") | ||
static let SaveViewController = Logger(subsystem: subsystem, category: "SaveViewController") | ||
static let Main = Logger(subsystem: subsystem, category: "Main") | ||
static let UploadInfoView = Logger(subsystem: subsystem, category: "UploadInfoView") | ||
static let UploadManager = Logger(subsystem: subsystem, category: "UploadManager") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters