Beispiel #1
0
        private void LogCurrentEpochResult(
            string message, int guiLogIntensity,
            int currentEpoch, int plannedEpochCount
            )
        {
            bool shouldLogToGui = (currentEpoch % guiLogIntensity == 0) ||
                                  currentEpoch == plannedEpochCount;

            if (shouldLogToGui)
            {
                GuiLogger.LogWriteLine(message);
            }

            NLogLogger.Info(message);
        }
Beispiel #2
0
 private void LogInfoUsingBothLoggers(string message)
 {
     GuiLogger.LogWriteLine(message);
     NLogLogger.Info(message);
 }