{"id":18249562,"url":"https://github.com/unitycontainer/log4net","last_synced_at":"2025-04-04T16:30:43.012Z","repository":{"id":54776049,"uuid":"116823644","full_name":"unitycontainer/log4net","owner":"unitycontainer","description":"Unity adapter for log4net ","archived":false,"fork":false,"pushed_at":"2023-03-07T15:45:59.000Z","size":55,"stargazers_count":17,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-20T15:04:21.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unitycontainer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ENikS"],"open_collective":"unity-container"}},"created_at":"2018-01-09T14:04:39.000Z","updated_at":"2025-01-26T10:24:43.000Z","dependencies_parsed_at":"2024-06-18T21:14:46.793Z","dependency_job_id":"e4736948-95ef-4a31-8810-39b1cad0aba2","html_url":"https://github.com/unitycontainer/log4net","commit_stats":{"total_commits":75,"total_committers":4,"mean_commits":18.75,"dds":0.06666666666666665,"last_synced_commit":"27b606ea55b0dac1d35bb16e8ec49d844e53b179"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Flog4net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Flog4net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Flog4net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Flog4net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unitycontainer","download_url":"https://codeload.github.com/unitycontainer/log4net/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247209219,"owners_count":20901727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T09:40:31.437Z","updated_at":"2025-04-04T16:30:42.758Z","avatar_url":"https://github.com/unitycontainer.png","language":"C#","funding_links":["https://github.com/sponsors/ENikS","https://opencollective.com/unity-container"],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/3x9gf21l6qqxo9rn/branch/v5.x?svg=true)](https://ci.appveyor.com/project/IoC-Unity/log4net/branch/v5.x)\n[![License](https://img.shields.io/badge/license-apache%202.0-60C060.svg)](https://github.com/IoC-Unity/log4net/blob/master/LICENSE)\n[![NuGet](https://img.shields.io/nuget/dt/Unity.log4net.svg)](https://www.nuget.org/packages/Unity.log4net)\n[![NuGet](https://img.shields.io/nuget/v/Unity.log4net.svg)](https://www.nuget.org/packages/Unity.log4net)\n\n# log4net adapter for Unity container\n\nUnity extension to integrate with popular [log4net](https://github.com/apache/logging-log4net) logger.\n\n## Getting Started\n\n- Reference the `Unity.log4net` package from NuGet.\n\n```shell\nInstall-Package Unity.log4net\n```\n\n## Registration\n\n- Add `Log4NetExtension` extension to the container\n\n```C#\ncontainer = new UnityContainer();\ncontainer.AddNewExtension\u003cLog4NetExtension\u003e();\n```\n\n- Where required add `ILog` interface to resolved constructor. \n\n```C#\npublic class LoggedType\n{\n    public LoggedType(ILog log)\n    {\n    }\n  ...\n}\n```\n\n- Log normally...\n\n## Code of Conduct\n\nThis 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)\n\n## Contributing\n\nSee the [Contributing guide](https://github.com/unitycontainer/unity/blob/master/CONTRIBUTING.md) for more information.\n\n## .NET Foundation\n\nUnity Container is a [.NET Foundation](https://dotnetfoundation.org/projects/unitycontainer) project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitycontainer%2Flog4net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funitycontainer%2Flog4net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitycontainer%2Flog4net/lists"}