Giter Site home page Giter Site logo

faheemfactor / crmk-dotnetcore-aspnet-serilog-flogging Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.76 MB

This is implementation of serilog.net logging into dotnet core console application and asp.net core 2.0 MVC web application. For more information please visit https://serilog.net/ , https://www.asp.net/core/overview/aspnet-vnext , https://github.com/dahlsailrunner

C# 98.97% CSS 0.98% JavaScript 0.05%

crmk-dotnetcore-aspnet-serilog-flogging's Introduction

asp-net-core-serilog-flogging

This is implementation of serilog.net logging into dotnet core console application and asp.net core 2.0 MVC web application. For more information please visit https://serilog.net/ , https://www.asp.net/core/overview/aspnet-vnext , https://github.com/dahlsailrunner Please modify/clean this code as per your need, code helps you to know about serilog and potential to use it across different levels of application. Credit to https://github.com/dahlsailrunner for providing insight into the serilog.

How to use it

Use Flogging.Console application as startup for first time. As this will display you in case if there is issue in your database connection or any relevant issue in basic configuration. It should create the four tables in relevant database you can run this code if the console applciation does not show any error.

SELECT * FROM [dbo].[PerfLogs] SELECT * FROM [dbo].[UsageLogs] SELECT * FROM [dbo].[ErrorLogs] SELECT * FROM [dbo].[DiagnosticLogs]

Then change the Flogging.Web to start up project and run the web application.

For File Log

There is a code in Flogging.Core commented. Enabling that will create files in application direction folder log.

configuring MSSQL database connection

Update the database relevant configuration in Project Flogging.Core -> Flogger.cs , go to line 24

var connectionObject = new { server = "", database = "", username = "", password = "" };

crmk-dotnetcore-aspnet-serilog-flogging's People

Contributors

faheemfactor avatar

Watchers

James Cloos avatar Charles DeSouza 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.