Add logger to upload controller

dhcp-server
Pat Hartl 2023-09-10 17:11:30 -05:00
parent 749d07a546
commit d7c2ae0d85
1 changed files with 3 additions and 0 deletions

View File

@ -2,12 +2,15 @@
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using NLog;
namespace LANCommander.Controllers namespace LANCommander.Controllers
{ {
[Authorize(Roles = "Administrator")] [Authorize(Roles = "Administrator")]
public class UploadController : Controller public class UploadController : Controller
{ {
protected readonly Logger Logger = LogManager.GetCurrentClassLogger();
private const string UploadDirectory = "Upload"; private const string UploadDirectory = "Upload";
public JsonResult Init() public JsonResult Init()