{"id":18249559,"url":"https://github.com/unitycontainer/microsoft-logging","last_synced_at":"2025-04-04T16:30:46.494Z","repository":{"id":56212649,"uuid":"117157043","full_name":"unitycontainer/microsoft-logging","owner":"unitycontainer","description":"Adapter for Microsoft.Extensions.Logging","archived":false,"fork":false,"pushed_at":"2023-03-07T15:44:15.000Z","size":58,"stargazers_count":16,"open_issues_count":4,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-07T05:43:58.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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-11T21:42:30.000Z","updated_at":"2024-07-31T07:57:25.000Z","dependencies_parsed_at":"2024-06-18T20:03:53.293Z","dependency_job_id":"4fe85320-7444-48a3-be66-22803de428fb","html_url":"https://github.com/unitycontainer/microsoft-logging","commit_stats":{"total_commits":80,"total_committers":2,"mean_commits":40.0,"dds":"0.012499999999999956","last_synced_commit":"a8fa7999a71242d53b6b19d7232fd48705549ee2"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Fmicrosoft-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Fmicrosoft-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Fmicrosoft-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitycontainer%2Fmicrosoft-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unitycontainer","download_url":"https://codeload.github.com/unitycontainer/microsoft-logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223149534,"owners_count":17095951,"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:30.434Z","updated_at":"2024-11-05T09:40:31.141Z","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/r97hcdjf377ty6kq/branch/master?svg=true)](https://ci.appveyor.com/project/IoC-Unity/microsoft-logging/branch/master)\n[![codecov](https://codecov.io/gh/unitycontainer/microsoft-logging/branch/master/graph/badge.svg)](https://codecov.io/gh/unitycontainer/microsoft-logging)\n[![License](https://img.shields.io/badge/license-apache%202.0-60C060.svg)](https://github.com/IoC-Unity/microsoft-logging/blob/master/LICENSE)\n[![Build status](https://ci.appveyor.com/api/projects/status/r97hcdjf377ty6kq/branch/master?svg=true)](https://ci.appveyor.com/project/IoC-Unity/microsoft-logging/branch/master) \n[![NuGet](https://img.shields.io/nuget/v/Unity.Microsoft.Logging.svg)](https://www.nuget.org/packages/Unity.Microsoft.Logging)\n\n# Microsoft.Extensions.Logging\n\nUnity extension to integrate with [Microsoft.Extensions.Logging](https://www.nuget.org/packages?q=Microsoft.Extensions.Logging).\n\n## Getting Started\n\n- Reference the [Unity.Microsoft.Logging](https://www.nuget.org/packages/Unity.Microsoft.Logging) package from NuGet.\n\n```shell\nInstall-Package Unity.Microsoft.Logging \n```\n\n### Create and configure LoggerFactory\n\n```C#\nILoggerFactory loggerFactory = new LoggerFactory();\nloggerFactory.AddProvider(new ConsoleLoggerProvider((text, logLevel) =\u003e logLevel \u003e= LogLevel.Debug, false));\n```\n\n### Get the container\n\n```C#\nvar container = new UnityContainer();\n```\n\n### Register extension and pass it configured factory\n\n```C#\ncontainer.AddExtension(new LoggingExtension(loggerFactory));\n\n// Register few types\ncontainer.RegisterType\u003cIService, Service\u003e();\n\nvar service = container.Resolve\u003cIService\u003e();\n```\n\nFor more information see [this example](https://github.com/unitycontainer/examples/tree/master/src/Logging/Microsoft.Logging)\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%2Fmicrosoft-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funitycontainer%2Fmicrosoft-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitycontainer%2Fmicrosoft-logging/lists"}