The Notifiers Module¶
The notifiers module implements special handlers for various platforms that depend on external libraries. The more module implements special handlers and other things that are beyond the scope of Logbook itself or depend on external libraries.
-
logbook.notifiers.
create_notification_handler
(application_name=None, level=0, icon=None)[source]¶ Creates a handler perfectly fit the current platform. On Linux systems this creates a
LibNotifyHandler
, on OS X systems it will create aGrowlHandler
.
OSX Specific Handlers¶
-
class
logbook.notifiers.
GrowlHandler
(application_name=None, icon=None, host=None, password=None, record_limit=None, record_delta=None, level=0, filter=None, bubble=False)[source]¶ A handler that dispatches to Growl. Requires that either growl-py or py-Growl are installed.
Linux Specific Handlers¶
-
class
logbook.notifiers.
LibNotifyHandler
(application_name=None, icon=None, no_init=False, record_limit=None, record_delta=None, level=0, filter=None, bubble=False)[source]¶ A handler that dispatches to libnotify. Requires pynotify installed. If no_init is set to True the initialization of libnotify is skipped.
-
get_expires
(record)[source]¶ Returns either EXPIRES_DEFAULT or EXPIRES_NEVER for this record. The default implementation marks errors and criticals as EXPIRES_NEVER.
-