开发者

Castle logging facade and NLog

开发者 https://www.devze.com 2023-03-29 00:08 出处:网络
I\'m using Castle for logging facade. I have problem when my logger is logging message. The callsite is not my Namespace.Class but is castle facade: Castle.Services.Logging.NLogIntegration.NLogLogger开

I'm using Castle for logging facade. I have problem when my logger is logging message. The callsite is not my Namespace.Class but is castle facade: Castle.Services.Logging.NLogIntegration.NLogLogger开发者_开发百科.Debug So, how to set a callsite to be my real class that is calling this logger, and not the Castle's Nlog implementation?


I was able to solve this by creating logger with name of the class in which logger is and by changing configuration file to write logger name instead of call site.

0

精彩评论

暂无评论...
验证码 换一张
取 消