Unity.log4net 1.0.0

Unity adapter for log4net

Install-Package Unity.log4net -Version 1.0.0
dotnet add package Unity.log4net --version 1.0.0
paket add Unity.log4net --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Getting Started

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

Registration:

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

Getting Started

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

Registration:

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

Release Notes

This package is compatible with Unity.

Version History

Version Downloads Last updated
1.0.0 (current version) 209 1/12/2018