Коммит
e198dc702d
|
@ -18,6 +18,7 @@ using Microsoft.Azure.Management.Graph.RBAC.Fluent;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using log4net;
|
using log4net;
|
||||||
using log4net.Config;
|
using log4net.Config;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
namespace RBAC
|
namespace RBAC
|
||||||
{
|
{
|
||||||
|
@ -75,7 +76,11 @@ namespace RBAC
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log4net.GlobalContext.Properties["Log"] = $"{args[2]}/Log";
|
log4net.GlobalContext.Properties["Log"] = $"{args[2]}/Log";
|
||||||
|
var logRepo = LogManager.GetRepository(Assembly.GetEntryAssembly());
|
||||||
|
|
||||||
|
XmlConfigurator.Configure(logRepo, new FileInfo(args[3]));
|
||||||
}
|
}
|
||||||
|
log.Info("Program started!");
|
||||||
log.Info("File extensions verified!");
|
log.Info("File extensions verified!");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using Microsoft.Azure.Management.KeyVault.Models;
|
using Microsoft.Azure.Management.KeyVault.Models;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System;
|
using System;
|
||||||
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")]
|
[assembly: log4net.Config.XmlConfigurator]
|
||||||
|
|
||||||
namespace RBAC
|
namespace RBAC
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче