Name
recent, log.recent, kPMRPCLogRecent, kPMObserveLogRecent — Audit log tail.
Synopsis
array of s log.recent( |
); |
Description
Audit log tail.
Recent log messages stored by Apple System Log (ASL). Messages are filtered according to the filter level, and any remote syslogd filter, settings.
Logged messages are not guaranteed to appear in the recent list. Messages may be omitted if they occur too rapidly, or have identical time stamps.
For a complete log, use ASL to retrieve the messages directly.
Security
recent can be requested by any authenticated client.
Unauthenticated clients are authorized using the uk.co.dssw.powermanager.log.recent right. By default, only local processes belonging to administrator can send a recent request.
Examples
Example 65. C: log.recent
CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCLogRecent);
Example 66. Objective-C: log.recent
DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCLogRecent];
Example 67. AppleScript: log.recent
tell application "Power Manager Scripting"
set myResult to recent of Log
end tell