Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/LogDistributedNotifications
Log distributed notifications on macOS
https://github.com/sindresorhus/LogDistributedNotifications
command-line-tool macos swift swift-package
Last synced: 3 months ago
JSON representation
Log distributed notifications on macOS
- Host: GitHub
- URL: https://github.com/sindresorhus/LogDistributedNotifications
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2019-02-19T17:38:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-22T17:08:01.000Z (about 2 years ago)
- Last Synced: 2024-04-14T11:09:14.055Z (7 months ago)
- Topics: command-line-tool, macos, swift, swift-package
- Language: Swift
- Homepage:
- Size: 1.95 KB
- Stars: 43
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# LogDistributedNotifications
**This no longer works because of changes in recent macOS versions**
> Log [distributed notifications](https://developer.apple.com/documentation/foundation/distributednotificationcenter) on macOS
Can be useful for checking if certain events are sent or investigating how some system functionality works.
## Usage
```console
$ git clone https://github.com/sindresorhus/LogDistributedNotifications
$ swift run
name = _NSDoNotDisturbEnabledNotification, object = nil, userInfo = nil
name = _NSDoNotDisturbDisabledNotification, object = nil, userInfo = nil
name = com.apple.HIToolbox.beginMenuTrackingNotification, object = nil, userInfo = Optional([AnyHashable("ToolboxMessageEventData"): 563])
name = com.apple.HIToolbox.endMenuTrackingNotification, object = nil, userInfo = nil
name = com.apple.HIToolbox.beginMenuTrackingNotification, object = nil, userInfo = Optional([AnyHashable("ToolboxMessageEventData"): 735])
name = com.apple.backup.DiscoverHookClientsNotification, object = Optional(com.apple.backup.BackupObject), userInfo = nil
name = com.apple.HIToolbox.endMenuTrackingNotification, object = nil, userInfo = nil
```