GithubHelp home page GithubHelp logo

wagnerhsu / sample-nlog.web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nlog/nlog.web

0.0 1.0 0.0 2.49 MB

NLog integration for ASP.NET & ASP.NET Core 1-3

Home Page: https://nlog-project.org

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

C# 99.54% PowerShell 0.46%

sample-nlog.web's Introduction

NLog

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

AppVeyor Version Version

These packages are extensions to NLog.

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

Getting started with NLog

Config

Troubleshooting

Releases

For updates and releases, check CHANGELOG.MD or Releases

ASP.NET Core

The NLog.Web.AspNetCore-package supports the platforms:

  • For ASP.NET Core 5, .NET 5
  • For ASP.NET Core 3, .NET Core 3.0
  • For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+

ℹī¸ Missing the trace and debug logs? Check your appsettings.json

Use the NLog.Web.AspNetCore package

ASP.NET (non-core)

The NLog.Web-package works with classic ASP.NET MVC

  <!-- enable ASP.NET layout renderers -->
  <extensions>
    <add assembly="NLog.Web"/>
  </extensions>

HTTP module (ASP.NET non-core)

note: not listed on https://nlog-project.org/config

There is a ASP.NET ASP.NET HttpModule that enables NLog to hook BeginRequest and EndRequest events easily.

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>

Contributions

Contributions are highly appreciated! Please make sure if works for ASP.NET and ASP.NET Core if possible and make sure it is covered by unit tests.

License

BSD

sample-nlog.web's People

Contributors

304notmodified avatar abakumov-v avatar alexangas avatar blaikic avatar dafanasiev avatar damienbod avatar defee avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar drewbrasher avatar epignosisx avatar giorgi avatar grokky1 avatar johnkors avatar kichristensen avatar mcliment avatar page-not-found avatar petemounce avatar repo-ranger[bot] avatar s-sreenath avatar sm-g avatar snakefoot avatar thomasardal avatar timabell avatar vegar avatar

Watchers

 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.