- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我想知道在 Microsoft Orleans 中使用 log4net 的最佳实践是什么?应该在哪里初始化?
最佳答案
我认为初始化每个筒仓静态变量的最佳位置是 Silo Bootstrap .
请注意,Orleans 配置了一个记录器,您可以通过调用 this.GetLogger()
获取它。
Orleans.Runtime.TraceLogger.LogConsumers.Add()
。
<编辑 2015-07-16>:这出现在 Orleans Gitter channel再次,following advice由核心团队成员提供:
we publish to .NET Trace and you can ad new listeners to it.that is actual the best way to do it, even without touching Orleans.Runtime.TraceLogger.LogConsumers.just work with .NET TRace, with usual tools and config. unrelated to Orleans. we just publish into Trace.
在另一篇 Stackoverflow 帖子中添加了一个注意事项 Logging best practices , 其中Sly Gryphon相当详尽地遍历跟踪基础设施。
关于c# - Log4Net 和奥尔良,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28700767/
连接到奥尔良服务器的正确方法是什么? 可以说我有一个移动应用程序,我想从该应用程序连接到奥尔良服务器。 我应该直接连接到奥尔良还是使用某些前端服务器(为什么?) 如果直接使用,我应该使用奥尔良流或自定
我正在评估 Microsoft Orleans 作为自定义分布式缓存(以及其他功能)的基础。 我能够使用 MembershipTableGrain 创建一个用于评估目的的不可靠集群。一切都按照文档中的
我目前正在为我们的组织了解 MS Orleans。据我了解,只要所有数据库更新都通过 Grains 进行,Orleans Grains 就会与数据库保持同步。 但是如果有一些批量处理过程(例如数据文件
我目前正在为我们的组织了解 MS Orleans。据我了解,只要所有数据库更新都通过 Grains 进行,Orleans Grains 就会与数据库保持同步。 但是如果有一些批量处理过程(例如数据文件
我刚刚开始学习 Microsoft Orleans,我想知道如何最好地处理我们的一个场景。我们将有一个接收请求的 REST 服务,该请求最终会导致在外部系统中创建一条新记录。该记录将具有长 Id 值。
如果您不了解 C# 但熟悉 actor 模型,请阅读下面我的问题,因为它更多地涉及架构和数据管理。 我是一名非常初级的 C# 开发人员,正在尝试了解 actor 模型是什么。我已经完成了它,但还有一点
我是一名优秀的程序员,十分优秀!