Bug 57: adding logging to core module