Name

recent, log.recent, kPMRPCLogRecent, kPMObserveLogRecent — Audit log tail.

Synopsis

array of log message structures 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.

Returns

recent is an array of log message structures. recent must be 100 items or less.

Observable

Changes to recent can be observed, without polling, using log.recent, kPMObserveLogRecent.

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.

Availablility

pmdctl

Examples

Example 71. C: log.recent

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCLogRecent);


Example 72. Objective-C: log.recent

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCLogRecent];


Example 73. AppleScript: log.recent

tell application "Power Manager Scripting"
    set myResult to recent of Log
end tell


Example 74. Shell: log.recent

./pmctl log.recent