Add logger to upload controller
parent
749d07a546
commit
d7c2ae0d85
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue