Giter VIP home page Giter VIP logo

logtail-.net's Introduction

Logtail .NET

Logtail uses a highly popular NLog logging library. You can integrate Logtail into your .NET application in just a few simple steps.

Visit our official docs to learn more about Logtail and .NET!

Installation

To use Logtail in your .NET project you need to install the following two packages. It can be done from the Visual Studio interface or command line, depending on your preferences.

Install Logtail package

In Visual Studio

In Visual Studio, open NuGet Package Manager Console by clicking Tools → NuGet Package Manager → Package Manager Console

In the opened console run the following command:

Install-Package Logtail

Then run the following command to install NLog.Extensions.Logging package:

Install-Package NLog.Extensions.Logging

In PowerShell command line

To install the Logtail package using PowerShell, run the following command in your project’s directory:

dotnet add package Logtail

Then install NLog.Extensions.Logging package using the following command:

dotnet add package NLog.Extensions.Logging

Install example application

Download or clone the repository to your select project directory.

Run the example application using Visual Studio

Open the .csproj file in the Visual Studio. Then click on the green play button DotNetLogtail or press F5 to run the application.

Run in the command line

Open the command line in the projects directory and enter the following command:

dotnet run

This is the expected output:

All done! Now, you can check Logtail to see your logs

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.