如何一瞥仍然存在调试信息? [英] How glimpse persists debugging information?

查看:224
本文介绍了如何一瞥仍然存在调试信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何掠影坚持收集的数据?这一切是保存在内存中?有没有办法在一个数据库来持久数据?

How does Glimpse persist collected data? Is it all saved in memory? Is there a way to persist the data in a database?

我问这个,因为如果我在多台计算机(负载平衡),我可以使用窥进行调试,或从一台服务器无法访问收集到的数据从其他服务器?安装了一个网站

I ask this because if I have a website installed on multiple machines (load balancing) can I use glimpse for debugging, or is the data collected from one server not accessible from other servers?

推荐答案

<一个href=\"https://github.com/Glimpse/Glimpse/blob/739afdba40e61ea31b42e6d0ddfbeed8f9c561be/source/Glimpse.Core/Framework/IPersistenceStore.cs\"><$c$c>IPersistenceStore是实现该接口。

IPersistenceStore is the interface to implement.

掠影运出与存储在存储器称为盒<一的href=\"https://github.com/Glimpse/Glimpse/blob/739afdba40e61ea31b42e6d0ddfbeed8f9c561be/source/Glimpse.Core/Framework/ApplicationPersistenceStore.cs\"><$c$c>ApplicationPersistenceStore,但您的实现可以在数据写入到数据库,文件系统,分布式缓存 - 无论满足您的需求。

Glimpse ships out of the box with an in memory store called ApplicationPersistenceStore, but your implementation could write the data to a database, filesystem, distributed cache - whatever meets your needs.

要连接您的实现为掠影,你需要创建一个<一个href=\"https://github.com/Glimpse/Glimpse/blob/739afdba40e61ea31b42e6d0ddfbeed8f9c561be/source/Glimpse.Core/Framework/IServiceLocator.cs\"><$c$c>IServiceLocator并配置管窥到的web.config通过的一瞥节点 serviceLocatorType 属性使用

To wire your implementation into Glimpse, you'll need to create an IServiceLocator and configure Glimpse to use it via the serviceLocatorType attribute on the glimpse node in web.config.

如果你想看到一个样本 IServiceLocator 的实现,你可以看看<一个href=\"https://github.com/Glimpse/Glimpse/blob/739afdba40e61ea31b42e6d0ddfbeed8f9c561be/source/Glimpse.AspNet/AspNetServiceLocator.cs\"><$c$c>AspNetServiceLocator.

If you'd like to see a sample IServiceLocator implementation, you can take a look at AspNetServiceLocator.

这篇关于如何一瞥仍然存在调试信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆