PPPC-Utility icon indicating copy to clipboard operation
PPPC-Utility copied to clipboard

Updated print and os_log calls to modern OSLog class.

Open SkylerGodfrey opened this issue 1 year ago • 3 comments

Replaced all print and os_log calls with OSLog class calls: https://developer.apple.com/documentation/os/oslog

This is to address Should use os_log instead of print function #112: https://github.com/jamf/PPPC-Utility/issues/112

SkylerGodfrey avatar Oct 21 '24 15:10 SkylerGodfrey

There are a few SwiftLint warnings. If you install SwiftLint locally, the warnings should show up in Xcode.

watkyn avatar Oct 21 '24 20:10 watkyn

There are a few SwiftLint warnings. If you install SwiftLint locally, the warnings should show up in Xcode.

Xcode has a setting that will help. Using the Xcode > Settings menu command, under the Text Editing tab, then the Editing tab, turn on the "Automatically trim trailing whitespace" and "Including whitespace-only lines" checkboxes.

macblazer avatar Oct 21 '24 20:10 macblazer

There are a few SwiftLint warnings. If you install SwiftLint locally, the warnings should show up in Xcode.

Just one more SwiftLint issue to resolve.

watkyn avatar Oct 22 '24 20:10 watkyn

Everything looking good! One last thing is to update the CHANGELOG.md about the logging. After that we can get this merged in.

watkyn avatar Oct 28 '24 13:10 watkyn