{"id":23451284,"url":"https://github.com/nlog/nlog.owin.logging","last_synced_at":"2025-09-07T01:36:35.081Z","repository":{"id":60774139,"uuid":"28515861","full_name":"NLog/NLog.Owin.Logging","owner":"NLog","description":"NLog logging adapter for OWIN","archived":false,"fork":false,"pushed_at":"2024-05-19T11:22:16.000Z","size":541,"stargazers_count":25,"open_issues_count":1,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-07T01:36:34.695Z","etag":null,"topics":["nlog","owin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NLog.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-12-26T16:47:21.000Z","updated_at":"2024-05-19T11:22:20.000Z","dependencies_parsed_at":"2023-10-16T08:36:52.074Z","dependency_job_id":"2c2186fd-8399-4dd9-b5a4-2dc535a3da51","html_url":"https://github.com/NLog/NLog.Owin.Logging","commit_stats":{"total_commits":64,"total_committers":8,"mean_commits":8.0,"dds":0.59375,"last_synced_commit":"10105e12d3502667902e82178d9bacf86ac71e33"},"previous_names":["pysco68/pysco68.owin.logging.nlogadapter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NLog/NLog.Owin.Logging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Owin.Logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Owin.Logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Owin.Logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Owin.Logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NLog","download_url":"https://codeload.github.com/NLog/NLog.Owin.Logging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.Owin.Logging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273986611,"owners_count":25202704,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["nlog","owin"],"created_at":"2024-12-24T00:25:34.652Z","updated_at":"2025-09-07T01:36:35.060Z","avatar_url":"https://github.com/NLog.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NLog.Owin.Logging\n\n[![Build status](https://ci.appveyor.com/api/projects/status/25xa6el222x7fhwe/branch/master?svg=true)](https://ci.appveyor.com/project/nlog/nlog-owin-logging/branch/master)\n[![codecov.io](https://codecov.io/github/NLog/NLog.Owin.Logging/coverage.svg?branch=master)](https://codecov.io/github/NLog/NLog.Owin.Logging?branch=master)\n[![Version](https://badge.fury.io/nu/NLog.Owin.Logging.svg)](https://www.nuget.org/packages/NLog.Owin.Logging)\n\nNLog logging adapter for OWIN!\n\n## Installation\n\nThere's a nuget package you can install this way:\n\n\u003e Install-Package NLog.Owin.Logging\n\n## Using\n\nTo use the NLogAdapter with its default configuration:\n\n```C#\nusing NLog.Owin.Logging;\n\npublic class Startup\n{\n\tpublic void Configuration(IAppBuilder app)\n\t{\n\t\tapp.UseNLog();\n\t}\n}\n```\n\nThe default translation table is:\n\n| TraceEventType\t| NLog Loglevel |\n|-------------------|---------------|\n| Critical\t\t\t| Fatal\t\t\t|\n| Error\t\t\t\t| Error \t\t|\n| Warning\t\t\t| Warn \t\t\t|\n| Information\t\t| Info \t\t\t|\n| Verbose\t\t\t| Trace \t\t|\n| Start\t\t\t\t| Debug \t\t|\n| Stop\t\t\t\t| Debug \t\t|\n| Suspend\t\t\t| Debug \t\t|\n| Resume\t\t\t| Debug \t\t|\n| Transfer\t\t\t| Debug \t\t|\n\nIf you'd like to customize this translation table you can supply a `Func\u003cTraceEventType, LogLevel\u003e` to the extension above.\n\n```C#\nusing NLog.Owin.Logging;\nusing NLog;\nusing System.Diagnostics;\n\npublic class Startup\n{\n\tpublic void Configuration(IAppBuilder app)\n\t{\n\t\t// make a warning out of every log message!\n\t\tapp.UseNLog((eventType) =\u003e LogLevel.Warn);\n\t}\n}\n```\n\n## Note / Information\n\n(Added in version 1.1) \nAny `EventId` passed to this `Microsoft.Owin.Logging.ILogger.WriteCore()` implementation is passed down to NLog in the log event's properties, and can be written to output by adding the matching line in the Log appender layout:\n\n```\n${event-properties:item=EventId}\n```\n\nYou can find more information about this topic in: https://github.com/NLog/NLog/wiki/EventProperties-Layout-Renderer\n\n## Help / Contribution\n\nIf you found a bug, please create an issue. Want to contribute? Create a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlog%2Fnlog.owin.logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlog%2Fnlog.owin.logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlog%2Fnlog.owin.logging/lists"}