private void LogMessage(string logMessage, EnumLoggingLevel loggingLevel) { if (_configuration.LoggingLevel == loggingLevel) { var now = DateTime.Now; Logger.AppendLine(string.Format("{0} {1}: {2}", now.ToShortDateString(), now.ToLongTimeString(), logMessage)); } }
// Methods --- // Mandatory parameter constructor public ConfigBase(string configFile) { m_ConfigFile = configFile; m_valid = false; m_OutputLayerNodeCount = 2; m_HiddenLayerNodeCount = 2; m_LearningRate = 0.1; m_PreviousDays = 200; m_InputFilePath = "./InputFile.csv"; m_IndicatorsFilePath = "./IndicatorsFile.csv"; m_TrainingFilePath = "./TrainingFile.csv"; m_TestFilePath = "./TestFile.csv"; m_LogFilePath = "./LogFile.log"; m_TrainingSize = 80; m_RunCombinations = false; m_Indicatorsout = "0:64"; m_LoggingLevel = EnumLoggingLevel.Warning; m_LoggingLevelString = Constants.WarningLevel; }