{"id":23451307,"url":"https://github.com/nlog/nlog.extensions.logging","last_synced_at":"2025-04-29T18:38:33.367Z","repository":{"id":37932932,"uuid":"49987133","full_name":"NLog/NLog.Extensions.Logging","owner":"NLog","description":"NLog as Logging Provider for Microsoft Extension Logging","archived":false,"fork":false,"pushed_at":"2024-11-07T17:02:13.000Z","size":1716,"stargazers_count":392,"open_issues_count":3,"forks_count":151,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-11-19T11:01:04.853Z","etag":null,"topics":["csharp","dotnet","logger","logging","logging-library","net-core","netcore","netstandard","nlog"],"latest_commit_sha":null,"homepage":"https://nlog-project.org","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NLog.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.MD","contributing":null,"funding":null,"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}},"created_at":"2016-01-19T22:18:30.000Z","updated_at":"2024-11-07T17:02:17.000Z","dependencies_parsed_at":"2023-10-16T09:03:57.323Z","dependency_job_id":"61e20bdb-1e60-421b-b5b9-f5bde1fe35da","html_url":"https://github.com/NLog/NLog.Extensions.Logging","commit_stats":{"total_commits":487,"total_committers":29,"mean_commits":16.79310344827586,"dds":0.4845995893223819,"last_synced_commit":"fed2ba1fb6bf3713d7ee6349264cec7fe21a41fd"},"previous_names":["nlog/nlog.framework.logging"],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Extensions.Logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Extensions.Logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Extensions.Logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Extensions.Logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NLog","download_url":"https://codeload.github.com/NLog/NLog.Extensions.Logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251561230,"owners_count":21609358,"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":["csharp","dotnet","logger","logging","logging-library","net-core","netcore","netstandard","nlog"],"created_at":"2024-12-24T00:25:37.317Z","updated_at":"2025-04-29T18:38:33.350Z","avatar_url":"https://github.com/NLog.png","language":"C#","readme":"![NLog](https://nlog-project.org/images/NLog.png)\n\n# NLog.Extensions.Logging \u0026 NLog.Extensions.Hosting\n\n\n[![NuGet Release](https://img.shields.io/nuget/v/NLog.Extensions.Logging.svg?label=NLog.Extensions.Logging)](https://www.nuget.org/packages/NLog.Extensions.Logging)\n\u003c!--[![NuGet Pre Release](https://img.shields.io/nuget/vpre/NLog.Extensions.Logging.svg?label=NLog.Extensions.Logging)](https://www.nuget.org/packages/NLog.Extensions.Logging)--\u003e\n\n[![NuGet Release](https://img.shields.io/nuget/v/NLog.Extensions.Hosting.svg?label=NLog.Extensions.Hosting)](https://www.nuget.org/packages/NLog.Extensions.Hosting)\n\u003c!--[![NuGet Pre Release](https://img.shields.io/nuget/vpre/NLog.Extensions.Hosting.svg?label=NLog.Extensions.Hosting)](https://www.nuget.org/packages/NLog.Extensions.Hosting)--\u003e\n\n[![Build status](https://ci.appveyor.com/api/projects/status/0nrg8cksp4b6tab1/branch/master?svg=true)](https://ci.appveyor.com/project/nlog/nlog-framework-logging/branch/master)\n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.extensions.logging\u0026branch=master\u0026metric=ncloc)](https://sonarcloud.io/dashboard/?id=nlog.extensions.logging\u0026branch=master) \n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.extensions.logging\u0026branch=master\u0026metric=bugs)](https://sonarcloud.io/dashboard/?id=nlog.extensions.logging\u0026branch=master) \n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.extensions.logging\u0026branch=master\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard/?id=nlog.extensions.logging\u0026branch=master) \n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.extensions.logging\u0026branch=master\u0026metric=code_smells)](https://sonarcloud.io/project/issues?id=nlog.extensions.logging\u0026branch=master\u0026resolved=false\u0026types=CODE_SMELL) \n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.extensions.logging\u0026branch=master\u0026metric=duplicated_lines_density)](https://sonarcloud.io/component_measures/domain/Duplications?id=nlog.extensions.logging\u0026branch=master) \n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.extensions.logging\u0026branch=master\u0026metric=sqale_debt_ratio)](https://sonarcloud.io/dashboard/?id=nlog.extensions.logging\u0026branch=master) \n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.extensions.logging\u0026branch=master\u0026metric=coverage)](https://sonarcloud.io/component_measures?id=nlog.extensions.logging\u0026branch=master\u0026metric=coverage) \n\n## NLog.Extensions.Logging\n\n[NLog.Extensions.Logging](https://www.nuget.org/packages/NLog.Extensions.Logging) enables NLog as Logging Provider for [Microsoft ILogger](https://github.com/NLog/NLog.Extensions.Logging/wiki/NLog-GetCurrentClassLogger-and-Microsoft-ILogger)-abstraction and Dependency Injection.\n\n- Introduces `AddNLog()` extension methods to register NLog as LoggingProvider for Microsoft Extension Logging.\n- Introduces [${configsetting}](https://github.com/NLog/NLog/wiki/ConfigSetting-Layout-Renderer) for doing lookup of appsettings.json configuration settings.\n- Adds support for loading [NLog Configuration from appsettings.json](https://github.com/NLog/NLog.Extensions.Logging/wiki/NLog-configuration-with-appsettings.json)\n\nNotice the standard [NLog NuGet package](https://www.nuget.org/packages/NLog) is enough for using NLog Logger with simple console application on the .NET Core platform.\nJust add `NLog.config` file to the project, and follow the [tutorial](https://github.com/NLog/NLog/wiki/Tutorial#configure-nlog-targets-for-output) for using `GetCurrentClassLogger()`.\n\n## NLog.Extensions.Hosting\n\n[NLog.Extensions.Hosting](https://www.nuget.org/packages/NLog.Extensions.Hosting) only introduces `UseNLog()` as extension-method for the `IHostBuilder`.\n\n\u003e Note if using **ASP.NET Core** then instead install [NLog.Web.AspNetCore](https://www.nuget.org/packages/NLog.web.aspnetcore).\n\n### Getting Started Tutorials:\n\n- [Getting started for ASP.NET Core 6](https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-6)\n- [Getting started for ASP.NET Core 5](https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-5)\n- [Getting started for ASP.NET Core 3.1](https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-3)\n- [Getting started for .NET Core Console application](https://github.com/NLog/NLog/wiki/Getting-started-with-.NET-Core-2---Console-application)\n- [How to use structured logging](https://github.com/NLog/NLog/wiki/How-to-use-structured-logging)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlog%2Fnlog.extensions.logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlog%2Fnlog.extensions.logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlog%2Fnlog.extensions.logging/lists"}