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

            MongoDbLogService.Insert(logEntity);

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

            var line = logEntity.ToJSON();

            File.AppendAllText(FilePath, line);

            return(logEntity.ToJSON());
        }
Esempio n. 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());
        }