Fix log method if iotdb_log cannot be imported.

The existing log method was incorrectly defined as an instance method.