File: oslayer_log.md

package info (click to toggle)
plover 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,356 kB
  • sloc: python: 21,589; sh: 682; ansic: 25; makefile: 11
file content (18 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# `plover.oslayer.log` -- User-facing notifications

This module provides a log handler for displaying critical notifications in the
system GUI.

```{py:module} plover.oslayer.log

```

```{class} NotificationHandler
A `logging.StreamHandler` that emits system notifications.

* On Windows, uses [Plyer](https://pypi.org/project/plyer/).
* On macOS, uses [`NSUserNotificationCenter`](https://developer.apple.com/documentation/foundation/nsusernotificationcenter).
* On Linux and BSD, uses DBus.

By default, this emits only notifications of level `WARNING` or higher.
```