Coder Social home page Coder Social logo

dingwd / nlog.web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nlog/nlog.web

0.0 2.0 0.0 1.13 MB

NLog targets specific for Web: ASP.NET & ASP.NET Core

License: BSD 3-Clause "New" or "Revised" License

C# 99.21% Batchfile 0.55% PowerShell 0.24%

nlog.web's Introduction

NLog.Web (ASP.NET & ASP.NET Core)

AppVeyor codecov.io BCH compliance

These packages are extensions to NLog.

The packages contain targets and layout-renderes specific to ASP.NET (Core), MVC and IIS.

ASP.NET: Version Rager Releases

ASP.NET Core: Version Rager Releases (ASP.NET Core 2 - install latest beta)

Getting started

Updates

For updates and releases, check CHANGELOG.MD or Releases

ASP.NET (non-core)

Simply install the package. NLog will detect the extension automatically.

ASP.NET Core 1 / ASP.NET Core 2


ℹ️ Missing the trace en debug logs in .NET Core 2? Set ILoggingBuilder.SetMinimumLevel()


⚠️ Not all targets and layout renders are implemented for .NET Standard. See the Platform support table


There is a special package for ASP.NET Core / MVC Core. This is needed because HttpContext.Current isn't available in ASP.NET Core and we can't detect if ASP.NET or ASP.NET Core is used. The package depends on NLog.Extensions.Logging

The following parts are supported in ASP.NET Core:

Introduced in NLog.Web 4.3 & NLog.Web.AspNetCore 4.3

Introduced in NLog.Web.AspNetCore 4.3.1

Content

This package contains one target, one target-wrapper, multiple layout renderers and one httpmodule.

Targets

  • AspNetTrace
  • AspNetBufferingWrapper

See Target documentation at the NLog wiki

Layout renderers

See Layout renderers documentation at the NLog wiki

Configuration

For the targets and layout renderers, no additional configuration is needed.

The NLogHttpModule needs a registration in the web.config:

<system.webServer> 
	<modules runAllManagedModulesForAllRequests="true"> 
		<add name="NLog" type="NLog.Web.NLogHttpModule, NLog.Web" />
	</modules>
</system.webServer>

License

BSD

nlog.web's People

Contributors

304notmodified avatar s-sreenath avatar kichristensen avatar epignosisx avatar giorgi avatar johnkors avatar grokky1 avatar abakumov-v avatar blaikic avatar dafanasiev avatar page-not-found avatar petemounce avatar timabell avatar vegar avatar damienbod avatar

Watchers

James Cloos avatar tradewind avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.