Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the Local Environment Construction of .NET Exceptionless Log Collection Framework

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Many novices are not very clear about how to build the local environment of the .NET Exceptionless log collection framework. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

I. brief introduction

Exceptionless is an open source real-time log collection framework, which can be used in applications based on technology stacks such as ASP.NET,ASP.NET Core,Web Api,Web Forms,WPF,Console,MVC, and provides a Rest interface that can be applied in Javascript,Node.js. It makes log collection easy to use and does not need to know too many technical details and configuration.

In the past, we mostly used frameworks such as Log4net,Nlog to collect logs. When the application becomes complex and clustered, the traditional approach may not be very suitable, because collecting logs and analyzing them will become troublesome and a waste of time.

Now the Exceptionless team has provided us with a better framework to do this, which I think is great and meaningful, thanks to them.

I. system environmental requirements

.NET 4.6.1 . Ignore if VS is already installed.

Download the reference for configuring Java environment variables in Java Sdk1.8+,Win10 environment

Download ElasticSearch 5.1, which is a Lunce-based search server. It is also an environment on which the framework itself is forced to rely.

After decompressing the ElasticSearch download, enter the bin directory

Run elasticsearch.bat to start the elasticsearch environment.

If we find it too troublesome to open the bat file every time, we can create a Windows Service system service. Go to the elasticsearch\ bin directory and execute:

After the successful execution, we can see it in the system service.

Set the service so that you don't have to open the bat file every time you start.

II. Local deployment of Exceptionless

Download the latest Exceptionless code and click Start.bat after decompression. If the following image appears, the deployment will be successful.

I thought this deployment was successful, and then refer to the https://www.cnblogs.com/savorboard/p/exceptionless.html tutorial, everything seems to be going well.

After local testing, I am ready to deploy to the server. It suddenly dawned on how other servers could log to the local address of http://localhost:50000/ and eventually have to be deployed to IIS.

III. Deployment of IIS environment

1. Add a website, go to the directory where you just downloaded the Exceptionless code, and select wwwroot

two。 Go to the wwwroot directory, open the Web.config file, and modify the address of the website you just added to BaseURL=. ElasticSearchConnectionString is the elasticsearch server address.

3. Enter the wwwroot directory, open app.config.*.js, and modify the address of the website you just added to BASE_URL=.

This is the end of the construction of the local IIS environment.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report