# You should have received a copy of the GNU General Public License
# along with pypiezo. If not, see <http://www.gnu.org/licenses/>.
+import logging as _logging
+
+
__version__ = '0.4'
+
+
+LOG = _logging.getLogger('pypiezo')
+"Pypiezo logger"
+
+LOG.setLevel(_logging.DEBUG)
+h = _logging.StreamHandler()
+#h.setLevel(_logging.WARN)
+h.setLevel(_logging.DEBUG)
+f = _logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
+h.setFormatter(f)
+LOG.addHandler(h)
+del h, f