Giter Site home page Giter Site logo

coolhome / nlog.extensions.logging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nlog/nlog.extensions.logging

0.0 2.0 0.0 1.09 MB

NLog provider for Microsoft's logging for .NET Core class libaries and console applications

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

License: BSD 2-Clause "Simplified" License

PowerShell 3.81% C# 96.19%

nlog.extensions.logging's Introduction

NLog.Extensions.Logging

NuGet Pre Release Build status Windows Build Status Linux

BCH compliance

NLog provider for Microsoft.Extensions.Logging; .NET Core. ASP.NET Core users should install NLog.Web.AspNetCore.

Note: Microsoft haven't ported all their classes to .NET standard, so not every target/layout renderer is available. Please check platform support

Getting started

ASP.NET Core

.NET Core Console application

You can choose whether or not to use Dependency Injection when using NLog in a .NET Core Console application. If you don't want to use DI, you can just add the NLog NuGet package to your project, manually add an NLog.config file, follow this tutorial to GetCurrentClassLogger(), and use that for logging.

To use DI, you can use NLog in conjunction with Microsoft.Extensions.Logging by following the 'getting started' tutorial below.

Known issues

  • auto load of NLog extensions won't work yet. Use <extensions> (see docs)

How to run the examples

How to run the dotnet-core-examples:

  1. Install dotnet: http://dot.net
  2. From source: dotnet run

nlog.extensions.logging's People

Contributors

304notmodified avatar snakefoot avatar dependabot-support avatar sheepreaper avatar andreigorlov avatar daanl avatar jez9999 avatar whoiskevinrich avatar oruban avatar sirentek avatar seblucas avatar tpodolak avatar

Watchers

Preston Alvarado avatar James Cloos 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.