Added Logbook Notify feature

Needs documentation
This commit is contained in:
Michael O'Connell
2010-09-06 10:43:48 +08:00
committed by Kenneth Reitz
parent 19ce0cef8f
commit dd26fa8982
+13
View File
@@ -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