Logging Support

Added log file support to core