重定向 GoogleSoftwareUpdateAgent 日志记录

重定向 GoogleSoftwareUpdateAgent 日志记录

我正在调试 Mac 上的问题,因此查看系统日志。我注意到的一件事是来自Google软件更新代理像下面这个:

Jan 13 15:47:55 <<Computer Name>> GoogleSoftwareUpdateAgent[10829]: 2019-01-13 15:47:55.765 GoogleSoftwareUpdateAgent[10829/0x700009887000] [lvl=2] -[KSEngineInvocation(KeystoneThread) updateProdu
   ticketStore=<KSPersistentTicketStore:0x7fd3e64284c0 store=<KSKeyedPersistentStore:0x7fd3e641b530
       path="/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore"
       lockFile=<KSLockFile:0x7fd3e6428110
           path="/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore.lock"
           resolvedPath="/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore.lock"
           shared=NO       fileSpecificLock=0x7fd3e6414d30>
       keyType=NSString
       valueTypes={(
           KSTicket
       )}
   >>
   processor=<KSActionProcessor:0x7fd3e660d830
       delegate=<KSDaemonUpdateEngine:0x7fd3e88019b0>
       isProcessing=NO actionsCompleted=0 progress=0.00
       errors=0 currentActionErrors=0
       events=0 currentActionEvents=0
       actionQueue=( )
   >
   delegate=<KSEngineInvocation: 0x7f8461727f30>
   serverInfoStore=(null)
   errors=0

这给系统日志文件增加了大量混乱,让我更难找到我想要的内容。有没有办法可以重定向所有日志记录Google软件更新代理到其自己的日志文件而不是system.log?我该怎么做?

答案1

如果更新代理的默认频率太高,可以降低该频率。

例如,将更新频率更改为 7 天,值为 24 x 3600 x 7 = 604800 :

defaults write com.google.Keystone.Agent checkInterval 604800.

相关内容