Refactored Logger.cs and LogData.cs