Adding .Net Foundation links
This commit is contained in:
Родитель
b66a9397aa
Коммит
ac9bcd676e
27
README.md
27
README.md
|
@ -3,23 +3,27 @@
|
|||
[![NuGet](https://img.shields.io/nuget/dt/Unity.log4net.svg)](https://www.nuget.org/packages/Unity.log4net)
|
||||
[![NuGet](https://img.shields.io/nuget/v/Unity.log4net.svg)](https://www.nuget.org/packages/Unity.log4net)
|
||||
|
||||
|
||||
# log4net adapter for Unity container
|
||||
|
||||
Unity extension to integrate with popular [log4net](https://github.com/apache/logging-log4net) logger.
|
||||
|
||||
## Getting Started
|
||||
- Reference the `Unity.log4net ` package from NuGet.
|
||||
```
|
||||
Install-Package Unity.log4net
|
||||
|
||||
- Reference the `Unity.log4net` package from NuGet.
|
||||
|
||||
```shell
|
||||
Install-Package Unity.log4net
|
||||
```
|
||||
|
||||
## Registration:
|
||||
## Registration
|
||||
|
||||
- Add `Log4NetExtension` extension to the container
|
||||
|
||||
```C#
|
||||
container = new UnityContainer();
|
||||
container.AddNewExtension<Log4NetExtension>();
|
||||
```
|
||||
|
||||
- Where required add `ILog` interface to resolved constructor.
|
||||
|
||||
```C#
|
||||
|
@ -31,4 +35,17 @@ public class LoggedType
|
|||
...
|
||||
}
|
||||
```
|
||||
|
||||
- Log normally...
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
This project has adopted the code of conduct defined by the [Contributor Covenant](https://www.contributor-covenant.org/) to clarify expected behavior in our community. For more information, see the [.NET Foundation Code of Conduct](https://www.dotnetfoundation.org/code-of-conduct)
|
||||
|
||||
## Contributing
|
||||
|
||||
See the [Contributing guide](https://github.com/unitycontainer/unity/blob/master/CONTRIBUTING.md) for more information.
|
||||
|
||||
## .NET Foundation
|
||||
|
||||
Unity Container is a [.NET Foundation](https://dotnetfoundation.org/projects/unitycontainer) project
|
||||
|
|
Загрузка…
Ссылка в новой задаче