implemented logging for low-level API
implemented logging for high-level API