feat: Support to read from Munki log
This adds support to read from Munki's default log file.
First Issue
Currently with the first regex pattern will remove "Installing" from the DEP Notify output. Ideally we use a capture group to get everything before Installing and remove it.
IE - The following regex
let installerRegEx = try NSRegularExpression(pattern: "(.*?)Installing")
with the following log line
Sep 01 2017 10:01:59 -0500 Installing Firefox.app (1 of 1)
results in the following output
Firefox.app (1 of 1)
and it should be.
Installing Firefox.app (1 of 1)
Second Issue
Munki allows admin's to customize the log path. I think a certain @Mactroll has some CFPreferences code to capture the LogFile
key from the ManagedInstalls
domain.
Edited by username-removed-327884