Fixed the logging handler

The handler was not added, so the engine was not logging on the file!