All Projects → NLog → NLog.Owin.Logging

NLog / NLog.Owin.Logging

Licence: MIT license
NLog logging adapter for OWIN

Programming Languages

C#
18002 projects

Labels

Projects that are alternatives of or similar to NLog.Owin.Logging

Stove
Domain Driven Design oriented application framework, meets CRUD needs
Stars: ✭ 160 (+540%)
Mutual labels:  nlog
Microsoft.Owin.Security.QQ-WebChat
QQ and Webchat extensions for Microsoft.Owin.Security
Stars: ✭ 20 (-20%)
Mutual labels:  owin
Simplify.Web
Moved to https://github.com/SimplifyNet. Simplify.Web is a lightweight and fast server-side .NET web-framework based on MVC and OWIN for building HTTP based web-applications, RESTful APIs etc.
Stars: ✭ 23 (-8%)
Mutual labels:  owin
Nlog.web
NLog integration for ASP.NET & ASP.NET Core 1-5
Stars: ✭ 252 (+908%)
Mutual labels:  nlog
Fos
FastCgi Server designed to run Owin applications side by side with a FastCgi enabled web server.
Stars: ✭ 65 (+160%)
Mutual labels:  owin
NLog.Targets.Syslog
A Syslog server target for NLog
Stars: ✭ 63 (+152%)
Mutual labels:  nlog
Applicationinsights Dotnet Logging
.NET Logging adaptors
Stars: ✭ 100 (+300%)
Mutual labels:  nlog
LeXun.Security.OAuth
用于 Asp.Net 和 Asp.Net Core 的OAuth2社交身份验证提供程序。支持支付宝,QQ,微信,百度等第三方登录
Stars: ✭ 19 (-24%)
Mutual labels:  owin
Owin.Security.AesDataProtectorProvider
OWIN AES data protector provider
Stars: ✭ 26 (+4%)
Mutual labels:  owin
connect-owin
Node.js connect middleware for .NET using OWIN
Stars: ✭ 46 (+84%)
Mutual labels:  owin
Owin.HealthCheck
Health Check Middleware for the OWIN pipeline
Stars: ✭ 22 (-12%)
Mutual labels:  owin
oauth-aspnet
An ASP.NET Core compatible port of the OAuth Authorization Server Middleware from Microsoft's Project Katana (Microsoft.Owin.Security.OAuth)
Stars: ✭ 25 (+0%)
Mutual labels:  owin
resharper-structured-logging
An extension for ReSharper and Rider that highlights structured logging templates and contains some useful analyzers
Stars: ✭ 117 (+368%)
Mutual labels:  nlog
Logdashboard
Log Dashboard
Stars: ✭ 200 (+700%)
Mutual labels:  nlog
Loginator
High performance log viewer for NLog (chainsaw) and other sources (logcat, etc.)
Stars: ✭ 31 (+24%)
Mutual labels:  nlog
Aaframework
AA.Framework is built on the popular open source class library of NET Core
Stars: ✭ 128 (+412%)
Mutual labels:  nlog
Multitenancy-Microservice-FederatedIdentity-Example
Multitenancy Federated Identity Example ASP.NET MVC C#
Stars: ✭ 33 (+32%)
Mutual labels:  owin
embedio-extras
Additional Modules showing how to extend EmbedIO.
Stars: ✭ 43 (+72%)
Mutual labels:  owin
NLog.Targets.GraylogHttp
NLog target that pushes log messages to Graylog using the Http input.
Stars: ✭ 17 (-32%)
Mutual labels:  nlog
Autofac.Extras.NLog
An Autofac module to integrate Autofac and NLog, it supports both constructor and property injection.
Stars: ✭ 48 (+92%)
Mutual labels:  nlog

NLog.Owin.Logging

Build status codecov.io Version

NLog logging adapter for OWIN!

Installation

There's a nuget package you can install this way:

Install-Package NLog.Owin.Logging

Currently there are dependencies on:

Target framework Dependencies
.NET 4.5 NLog (>= 5.0.0.0), Owin (>= 1.0)

Using

To use the NLogAdapter with its default configuration:

using NLog.Owin.Logging;

public class Startup
{
	public void Configuration(IAppBuilder app)
	{
		app.UseNLog();
	}
}

The default translation table is:

TraceEventType NLog Loglevel
Critical Fatal
Error Error
Warning Warn
Information Info
Verbose Trace
Start Debug
Stop Debug
Suspend Debug
Resume Debug
Transfer Debug

If you'd like to customize this translation table you can supply a Func<TraceEventType, LogLevel> to the extension above.

using NLog.Owin.Logging;
using NLog;
using System.Diagnostics;

public class Startup
{
	public void Configuration(IAppBuilder app)
	{
		// make a warning out of every log message!
		app.UseNLog((eventType) => LogLevel.Warn);
	}
}

Note / Information

(Added in version 1.1) Any 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:

${event-properties:item=EventId}

You can find more information about this topic in: https://github.com/NLog/NLog/wiki/EventProperties-Layout-Renderer

Help / Contribution

If you found a bug, please create an issue. Want to contribute? Create a pull request!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].