Trying to get log4net working with PowerShell (with a log4net config file in the mix)
I have been struggling with getting log4net working with PowerShell. I have the following PowerShell code that pulls in log4net with a configuration file and then attempts to make a simple log file entry but which errors out. Clear-History Clear-Host # Write-Host "BEGIN: Importing module psm_logger.psm1" Import-Module "C:\Users\Administrator\Desktop\ps\IIS\psm_logger.psm1" -Force Write-Host "BEGIN: log4net configuration definition" $log = New-Logger -Configuration "C:\Users\Administrator\Desktop\ps\IIS\logging\log4net.config" -Dll "C:\Users\Administrator\Desktop\ps\IIS\logging\log4net.dll"