Logging from powershell-script to csharp-program (log4net - logfile)

后端 未结 3 1733
萌比男神i
萌比男神i 2021-01-06 09:53

I have written a program with C#, that creates a logfile and fills this by using log4net. This program starts powershell-scripts. The scripts should use log4net, too. I want

3条回答
  •  伪装坚强ぢ
    2021-01-06 10:17

    I do not have details specific to log4net but it should be possible to load log4net like any other .Net component:

    Accessing .NET components from Powershell Powershell Calling .NET Assembly that uses App.config

提交回复
热议问题