Installation

The preferred way to install log4net is to use our nuget package.

Just add the following lines in your project file.

<ItemGroup>
  <PackageReference Include="log4net" Version="*" />
</ItemGroup>

Now you can use log4net. See our examples.

Alternatively you can use the dotnet tool.

dotnet add package log4net