Development

log4net uses GitHub for source code management.

Building log4net

Log4net provides support for the following targets

  • net462

  • netstandard2.0

Windows

  • install Visual Studio Build Tools (at least VS 2022)

  • install dotnet (v8+) and the .NET SDK (current latest)

  • in the project folder

    dotnet test ./src/log4net.sln

Docker

  • install docker (if you haven’t already)

  • in logging/log4net run

    docker build -t log4net-builder .
    docker run -it log4net-builder
    • this will

      • install all dependencies in the container

      • build src/log4net.sln

  • inside the container run

    dotnet test /logging-log4net/src/log4net.sln

Linux / MacOS

  • install the dotnet SDK - v8 or better

  • install Mono (you’re going to need it to target certain versions of .NET)

Site

You can build and view the website as follows:

./mvnw -N site

You can view the generated website with a browser by pointing it to target/site directory.

Release instructions

log4net employs the CI/CD foundation provided by the logging-parent. You can simply use its release instructions.