renamed "logging" to "log".
Refactored logging.