use logging instead of printing to stderr
Merge pull request #68 from Infinidat/logging

use logging instead of printing to stderr