Пример #1
0
        public GamesController(PictureGuessingDbContext context)
        {
            _context = context;

            _logger = new LoggerConfiguration()
                      .WriteTo.File("logs/log.txt", rollingInterval: RollingInterval.Day)
                      .CreateLogger();
        }
Пример #2
0
 public PicturesController(PictureGuessingDbContext context)
 {
     _context = context;
 }