Fix log method if iotdb_log cannot be imported.

The existing log method was incorrectly defined as an instance method.
Merge pull request #1 from brianpeiris/patch-1

Fix log method if iotdb_log cannot be imported.