Unity adapter for log4net
Switch branches/tags
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src <Copyright>Copyright © Unity Container Project 2018</Copyright> Aug 22, 2018
tests Updated Jan 13, 2018
.gitignore Initial commit Jan 9, 2018
LICENSE Initial commit Jan 9, 2018
README.md Update README.md Jan 12, 2018
appveyor.yml - cmd: dotnet test --framework net47 --verbosity q Jan 12, 2018
package.props Restricting Container version upper limit Aug 29, 2018
package.sln Added projects Jan 11, 2018


Build status License NuGet NuGet

log4net adapter for Unity container

Unity extension to integrate with popular log4net logger.

Getting Started

  • Reference the Unity.log4net package from NuGet.
Install-Package Unity.log4net 


  • Add Log4NetExtension extension to the container
container = new UnityContainer();
  • Where required add ILog interface to resolved constructor.
public class LoggedType
    public LoggedType(ILog log)
  • Log normally...