In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "how to use logdashboard for visual log tracking", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor learn "how to use logdashboard for visual log tracking".
LogDashboard
If you don't know LogDashboard, please see here. LogDashboard version 1.1 supports request tracking, although the current version has not yet been released. However, this function can be seen in advance.
Effect picture
Download the project
First, we can download the source code in https://github.com/liangshiw/LogDashboard/tree/master/samples/RequestTracking and open the project using VisualStudio. The directory structure is as follows
Configuration description
We set RequestTracking as the startup project and open the startup.cs file to see that the LogDashboard service and middleware have been configured successfully.
When adding services, we added a custom LogModel RequestTraceLogModel. In fact, RequestTraceLogModel is a pre-built log model of LogDashboard. In addition, LogDashboard provides an interface IRequestTraceLogModel for developers to customize their own tracking model.
Let's turn our attention to Config. This example uses the Nlog logging component. Nlog provides ${aspnet-traceidentifier} as the request ID, and log4net can also implement it.
At run time, we output the following logs in turn
Start the project
Now start the project and navigate to / LogDashboard, and you will see the first page of the log panel. Click on the details and find the request tracking tab to achieve the effect of dynamic picture demonstration at the beginning of the article.
At this point, I believe you have a deeper understanding of "how to use logdashboard for visual log tracking". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.