Пример #1
0
        private LoggerModel MakeLogger(string Message, string Context)
        {
            string currentPath     = _loggerRepository.ReturPath();
            string fileDestination = String.Format(LOG_FILE_NAME, DateTime.Now.ToString("dd-MM-yyyy"), Context.RemoveEspecialCaractere(), GetVerssion());
            string path            = Path.Combine(currentPath, fileDestination);
            string msg             = String.Format("v. {0} # {1} - {2}", GetVerssion(), DateTime.Now.ToString("HH:mm:ss"), Message);

            return(new LoggerModel(msg, path));
        }