use CWLogging instead of our own custom log macro
use new log function