1. Jeffrey Goettsch
  2. py-pushnotify

Commits

Jeffrey Goettsch  committed 2b45235

Logger added to Client classes.

  • Participants
  • Parent commits 55cb445
  • Branches default

Comments (0)

Files changed (4)

File pushnotify/__init__.py

View file
  • Ignore whitespace
 license: BSD, see LICENSE for details.
 
 """
+
+import logging
+
+
+logger = logging.getLogger(__package__)

File pushnotify/nma.py

View file
  • Ignore whitespace
 """
 
 
+import logging
 import urllib
 import urllib2
 try:
 
         """
 
+        self.logger = logging.getLogger('{0}.{1}'.format(
+            self.__module__, self.__class__.__name__))
+
         self._browser = urllib2.build_opener(urllib2.HTTPSHandler())
         self._last_type = None
         self._last_code = None

File pushnotify/prowl.py

View file
  • Ignore whitespace
 """
 
 
+import logging
 import urllib
 import urllib2
 try:
 
         """
 
+        self.logger = logging.getLogger('{0}.{1}'.format(
+            self.__module__, self.__class__.__name__))
+
         self._browser = urllib2.build_opener(urllib2.HTTPSHandler())
         self._last_type = None
         self._last_code = None

File pushnotify/pushover.py

View file
  • Ignore whitespace
 
 
 import json
+import logging
 import time
 import urllib
 import urllib2
 
         """
 
+        self.logger = logging.getLogger('{0}.{1}'.format(
+            self.__module__, self.__class__.__name__))
+
         self._browser = urllib2.build_opener(urllib2.HTTPSHandler())
         self._last_code = None
         self._last_device = None