From d7c2ae0d855a0ea944b484a174e479b6986eca91 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sun, 10 Sep 2023 17:11:30 -0500 Subject: [PATCH] Add logger to upload controller --- LANCommander/Controllers/UploadController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LANCommander/Controllers/UploadController.cs b/LANCommander/Controllers/UploadController.cs index a8a9c1e..ff578d0 100644 --- a/LANCommander/Controllers/UploadController.cs +++ b/LANCommander/Controllers/UploadController.cs @@ -2,12 +2,15 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using NLog; namespace LANCommander.Controllers { [Authorize(Roles = "Administrator")] public class UploadController : Controller { + protected readonly Logger Logger = LogManager.GetCurrentClassLogger(); + private const string UploadDirectory = "Upload"; public JsonResult Init()