mirror of
https://github.com/kennethreitz-archive/macspoof.git
synced 2026-06-05 23:50:19 +00:00
Added Logbook Notify feature
Needs documentation
This commit is contained in:
committed by
Kenneth Reitz
parent
19ce0cef8f
commit
dd26fa8982
@@ -0,0 +1,13 @@
|
||||
from logbook import Logger
|
||||
from logbook.notifiers import GrowlHandler
|
||||
|
||||
|
||||
app_name = Logger(u'MacSpoof')
|
||||
handler = GrowlHandler()
|
||||
|
||||
|
||||
|
||||
def notify(msg):
|
||||
with handler:
|
||||
app_name.notice(msg)
|
||||
print msg
|
||||
Reference in New Issue
Block a user