public override string WriteLog(LogEntityFactory logEntityFactory)
        {
            var logEntity = logEntityFactory.CreateLogEntity();

            MongoDbLogService.Insert(logEntity);

            return(logEntity.ToJSON());
        }
Exemple #2
0
        public override string WriteLog(LogEntityFactory logEntityFactory)
        {
            var logEntity = logEntityFactory.CreateLogEntity();

            var line = logEntity.ToJSON();

            File.AppendAllText(FilePath, line);

            return(logEntity.ToJSON());
        }
Exemple #3
0
        public override string WriteLog(LogEntityFactory logEntityFactory)
        {
            var logEntity = logEntityFactory.CreateLogEntity();

            this.SetConsoleForegroundColor(logEntity.Type);
            string line = logEntity.ToJSON();

            Console.WriteLine(line);

            return(logEntity.ToJSON());
        }