Logging in Eco.MVC.EcoController

假装没事ソ 提交于 2019-12-24 00:27:07

问题


In my MDriven MVC application I'm logging Trace messages into a log file. It seems that the class Eco.MVC.EcoController uses the Trace to log following events:

EcoController.EnsureEcoSpace: HomeController
EcoController.EnsureEcoSpace: CreateEcoSpace
EcoController.ReleaseEcoSpace: Disposing EcoSpace
OnResultExecuted (EcoController out of scope).

Is it possible to switch this logging off?


回答1:


Oops - no they were not optional. Checking in fix for this now. They will be default off and turned on with:

EcoTraceCategories.WebDebugPrint = true;


来源:https://stackoverflow.com/questions/50063301/logging-in-eco-mvc-ecocontroller

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!